{"x402Version":2,"service":"flipr-x402-gateway-testnet","network":"eip155:84532","paymentNetworks":["base","solana"],"payment_networks_description":"Accepts USDC payment on Base mainnet OR Solana mainnet (Solana payments bridge to Base per flip).","facilitator":"https://facilitator.payai.network","supportedSchemes":["exact"],"tokens":{"USDC":"0x036CbD53842c5426634e7929541eC2318f3dCF7e"},"contracts":{"coinflip":"0xa75d1b703cc6e5FF44037aD3b1cF598F23e9750f","usdc":"0x036CbD53842c5426634e7929541eC2318f3dCF7e"},"resources":[{"url":"https://flipr-x402-testnet.fly.dev/x402/flip","method":"POST","description":"Flip a coin on-chain (Chainlink VRF). Pay live USDC quote, get heads/tails + new streak. Mutates on-chain pot state.","bodyType":"json","input":{"ref":"flipr-abc123"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ref":{"type":"string","description":"Optional referral code (e.g. flipr-abc123)"}},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","required":["result","streak","txHash","requestId","wallet","agentId"],"properties":{"result":{"type":"string","enum":["heads","tails"]},"streak":{"type":"number"},"txHash":{"type":"string"},"requestId":{"type":"string"},"wallet":{"type":"string"},"agentId":{"type":"string"}}},"accepts":[{"scheme":"exact","network":"eip155:84532","amount":"950900","asset":"0x036CbD53842c5426634e7929541eC2318f3dCF7e","payTo":"0xfdA5a8DC19e814A7880515fEB88308BbEE625D6D","maxTimeoutSeconds":300,"extra":{"name":"USDC","version":"2"}},{"scheme":"exact","network":"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1","amount":"950900","maxAmountRequired":"950900","resource":"https://flipr-x402-testnet.fly.dev/x402/flip","description":"Flip a coin on-chain (Chainlink VRF). Pay live USDC quote, get heads/tails + new streak. Mutates on-chain pot state.","mimeType":"application/json","payTo":"E97YKfNC4tUW1qsmVj5TsNPFo5QqjQbYywfxqnhPVcZn","maxTimeoutSeconds":120,"asset":"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU","extra":{"decimals":6,"costBreakdown":{"note":"Solana payment includes Solana→Base USDC bridge per flip. See /integration#solana."},"feePayer":"E97YKfNC4tUW1qsmVj5TsNPFo5QqjQbYywfxqnhPVcZn","sdk":"@x402/svm","signer":"@solana/kit","quickInstall":"npm install @milkybear/agent-sdk @x402/svm @solana/kit bs58","docs":"https://flipr-x402-testnet.fly.dev/integration/solana"}}]},{"url":"https://flipr-x402-testnet.fly.dev/x402/withdraw","method":"POST","description":"Swap agent's ETH balance to USDC and send to a destination address. $0.001 USDC.","bodyType":"json","input":{"toAddress":"0x0000000000000000000000000000000000000000"},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","required":["toAddress"],"properties":{"toAddress":{"type":"string","description":"Destination EVM address (0x + 40 hex)"}},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","required":["agentId","wallet","withdrawnWei","receivedUSDC","txHash"],"properties":{"agentId":{"type":"string"},"wallet":{"type":"string"},"withdrawnWei":{"type":"string"},"receivedUSDC":{"type":"string"},"txHash":{"type":"string"}}},"accepts":[{"scheme":"exact","network":"eip155:84532","amount":"1000","asset":"0x036CbD53842c5426634e7929541eC2318f3dCF7e","payTo":"0xfdA5a8DC19e814A7880515fEB88308BbEE625D6D","maxTimeoutSeconds":300,"extra":{"name":"USDC","version":"2"}},{"scheme":"exact","network":"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1","amount":"1000","maxAmountRequired":"1000","resource":"https://flipr-x402-testnet.fly.dev/x402/withdraw","description":"Swap agent's ETH balance to USDC and send to a destination address. $0.001 USDC.","mimeType":"application/json","payTo":"E97YKfNC4tUW1qsmVj5TsNPFo5QqjQbYywfxqnhPVcZn","maxTimeoutSeconds":120,"asset":"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU","extra":{"decimals":6,"costBreakdown":{"note":"Solana payment includes Solana→Base USDC bridge per flip. See /integration#solana."},"feePayer":"E97YKfNC4tUW1qsmVj5TsNPFo5QqjQbYywfxqnhPVcZn","sdk":"@x402/svm","signer":"@solana/kit","quickInstall":"npm install @milkybear/agent-sdk @x402/svm @solana/kit bs58","docs":"https://flipr-x402-testnet.fly.dev/integration/solana"}}]},{"url":"https://flipr-x402-testnet.fly.dev/x402/opportunity/subscribe","method":"POST","description":"Register a webhook URL fired every 5 minutes when ANY of six event types fire: roi_emerged (best ROI crossed above threshold), lead_taken / lead_tied / lead_lost (your 2h-pot competitive position changed), pot_large (pot crossed ETH threshold upward), expiry_warning (subscription about to TTL). $0.001 USDC. 30-day TTL.","bodyType":"json","input":{"callbackUrl":"https://my-agent.example.com/webhook","roiThreshold":1.5},"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","required":["callbackUrl"],"properties":{"callbackUrl":{"type":"string","format":"uri","description":"HTTPS URL the gateway will POST signal payloads to"},"roiThreshold":{"type":"number","minimum":0,"maximum":100,"description":"Default 1.0 — fire only on emergence above this ROI; set 0 to fire every cycle"}},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","required":["id","agentId","callbackUrl","roiThreshold","createdAt"],"properties":{"id":{"type":"string"},"agentId":{"type":"string"},"callbackUrl":{"type":"string"},"roiThreshold":{"type":"number"},"createdAt":{"type":"string"}}},"accepts":[{"scheme":"exact","network":"eip155:84532","amount":"1000","asset":"0x036CbD53842c5426634e7929541eC2318f3dCF7e","payTo":"0xfdA5a8DC19e814A7880515fEB88308BbEE625D6D","maxTimeoutSeconds":300,"extra":{"name":"USDC","version":"2"}},{"scheme":"exact","network":"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1","amount":"1000","maxAmountRequired":"1000","resource":"https://flipr-x402-testnet.fly.dev/x402/opportunity/subscribe","description":"Register a webhook URL fired every 5 minutes when ANY of six event types fire: roi_emerged (best ROI crossed above threshold), lead_taken / lead_tied / lead_lost (your 2h-pot competitive position changed), pot_large (pot crossed ETH threshold upward), expiry_warning (subscription about to TTL). $0.001 USDC. 30-day TTL.","mimeType":"application/json","payTo":"E97YKfNC4tUW1qsmVj5TsNPFo5QqjQbYywfxqnhPVcZn","maxTimeoutSeconds":120,"asset":"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU","extra":{"decimals":6,"costBreakdown":{"note":"Solana payment includes Solana→Base USDC bridge per flip. See /integration#solana."},"feePayer":"E97YKfNC4tUW1qsmVj5TsNPFo5QqjQbYywfxqnhPVcZn","sdk":"@x402/svm","signer":"@solana/kit","quickInstall":"npm install @milkybear/agent-sdk @x402/svm @solana/kit bs58","docs":"https://flipr-x402-testnet.fly.dev/integration/solana"}}]}],"info":{"agentCard":"https://flipr-x402-testnet.fly.dev/.well-known/agent.json","openapi":"https://flipr-x402-testnet.fly.dev/openapi.json","gameInfo":"https://flipr-x402-testnet.fly.dev/game-info","preview":"https://flipr-x402-testnet.fly.dev/preview","integrationGuide":"https://flipr-x402-testnet.fly.dev/integration","dryRun":"POST https://flipr-x402-testnet.fly.dev/flip/dry-run — validate your payment SDK integration without USDC, free","siblingGateways":{"testnet":"https://flipr-x402-testnet.fly.dev","mainnet":"https://flipr-x402.fly.dev","testnetFaucet":"POST https://flipr-x402-testnet.fly.dev/faucet/testnet-usdc — free $2 testnet USDC (24h cooldown per agent)","testnetSolanaFaucet":"POST https://flipr-x402-testnet.fly.dev/faucet/solana-devnet-usdc with {\"toAddress\":\"<base58 Solana pubkey>\"} — free $2 devnet USDC at the SPL Associated Token Account (24h cooldown per agent, $100/day gateway cap)"},"freeReadEndpoints":["https://flipr-x402-testnet.fly.dev/pot","https://flipr-x402-testnet.fly.dev/opportunity","https://flipr-x402-testnet.fly.dev/opportunity/history","https://flipr-x402-testnet.fly.dev/agents","https://flipr-x402-testnet.fly.dev/leaderboard"],"note":"These are pointers, NOT x402 resources. They do not return 402. For machine-readable API spec see openapi."},"documentation":"https://github.com/coinbase/x402","_hint":"Directory auto-validators (x402scan, Bazaar, Zauth) should iterate `resources[]` and probe each URL+method expecting a 402 PAYMENT-REQUIRED challenge. Do NOT probe URLs in `info` — those are free pointers and will not return 402 by design."}