{"openapi":"3.1.0","info":{"title":"TKN Faucet","version":"1.0.0","summary":"Drip native TKN on the Conduit testnet (chain 58888).","description":"TKN is the chain gas token. Wallets and the block explorer label that same coin ETH. The password is a bearer token, the X-Faucet-Password header, or the JSON password field used by the web page."},"servers":[{"url":"https://faucet.actest.xyz"}],"paths":{"/api/status":{"get":{"operationId":"getStatus","summary":"Faucet configuration and balance","responses":{"200":{"description":"Public faucet status. balance is null when the RPC cannot be read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}},"/api/drip":{"post":{"operationId":"drip","summary":"Send one drip of native TKN","parameters":[{"name":"wait","in":"query","required":false,"schema":{"type":"string","enum":["true","1"]},"description":"When true, wait for one confirmation and include the receipt status."}],"security":[{"bearerAuth":[]},{"faucetPassword":[]},{}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DripRequest"}}}},"responses":{"200":{"description":"Transaction submitted. status and blockNumber are present only when wait=true and a receipt was observed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DripResult"}}}},"400":{"description":"invalid_address or invalid_json","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"chain_mismatch","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"cooldown_active or rate_limited. Retry-After is set.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"transaction_rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"insufficient_faucet_balance or rpc_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"confirmation_timeout. The transaction was still submitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/network":{"get":{"operationId":"getNetwork","summary":"EIP-3085 chain metadata plus settlement and bridge details","responses":{"200":{"description":"Add this object chainId, chainName, nativeCurrency, rpcUrls, and blockExplorerUrls with wallet_addEthereumChain."}}}},"/api/health":{"get":{"operationId":"health","summary":"Process health, no RPC call","responses":{"200":{"description":"ok"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"},"faucetPassword":{"type":"apiKey","in":"header","name":"X-Faucet-Password"}},"schemas":{"Status":{"type":"object","required":["symbol","chainId","rpcUrl","dripAmount","cooldownMinutes","retryAfterSeconds"],"properties":{"symbol":{"const":"TKN"},"chainId":{"type":"integer","examples":[58888]},"rpcUrl":{"type":"string","format":"uri"},"explorerUrl":{"type":["string","null"],"format":"uri"},"dripAmount":{"type":"string","examples":["0.1"]},"cooldownMinutes":{"type":"number","examples":[5]},"retryAfterSeconds":{"type":"integer","examples":[300],"description":"Cooldown length in seconds. A 429 uses the same field for the remaining wait."},"faucetAddress":{"type":"string"},"balance":{"type":["string","null"]},"balanceWei":{"type":["string","null"]},"balanceDisplay":{"type":["string","null"]},"error":{"type":"string"},"code":{"type":"string"}}},"DripRequest":{"type":"object","required":["address"],"properties":{"address":{"type":"string","description":"Checksummed or all-lowercase 0x address."},"password":{"type":"string","description":"Used by the web page. Prefer Authorization or X-Faucet-Password."}}},"DripResult":{"type":"object","required":["txHash"],"properties":{"txHash":{"type":"string"},"explorerUrl":{"type":["string","null"]},"status":{"type":"string","enum":["success","reverted"]},"blockNumber":{"type":"integer"}}},"Error":{"type":"object","required":["error","code"],"properties":{"error":{"type":"string"},"code":{"type":"string","enum":["unauthorized","invalid_address","invalid_json","invalid_request","cooldown_active","rate_limited","insufficient_faucet_balance","chain_mismatch","rpc_unavailable","transaction_rejected","confirmation_timeout","not_configured","payload_too_large","not_found","internal_error"]},"retryAfterSeconds":{"type":"integer"},"txHash":{"type":"string"},"explorerUrl":{"type":["string","null"]}}}}}}