monaco.api.faucet
Source: protos/api/faucet.proto
Use FaucetService to mint testnet tokens and read the faucet quota for an authenticated user.
Notes
- Faucet access is for testnet workflows.
- The quota is per wallet and application:
MintTokensenforces the calling application’s quota, andGetFaucetInfocounts and lists only the calling application’s requests. - Both RPCs reject delegated-agent sessions with
PERMISSION_DENIEDbefore reading or changing the quota. GetFaucetInforeturnsUNAUTHENTICATEDwithout a session,PERMISSION_DENIEDfor a delegated-agent session,RESOURCE_EXHAUSTEDwhen the read budget is exhausted (retry afterRetryInfo),INTERNALwhen the quota history cannot be read, andUNAVAILABLEwhen the quota configuration is unavailable (safe to retry).MintTokensRequestrequiresturnstile_token, a Cloudflare Turnstile captcha token — a non-optional field, listed in the message’srequiredschema. Runtime enforcement is governed by thefaucet_captcha_enforcedflag, which is on by default and fails closed: while it is on, a mint carrying no token or an invalid one is rejected, and an unconfigured verifier makes the endpoint temporarily unavailable rather than minting unchecked. An operator can disable enforcement for an environment that has no Turnstile verifier, in which case the token is not consulted — so always solve the captcha and send one.

