Get add funds Coinbase (USDC) pay link
get_add_funds_coinbase_pay_linkGet a Coinbase checkout link, paid in USDC, that adds funds to the user's Atom account balance (the balance register_domain and purchase_domain pay from). Returns two URLs for the same payment: x402_url — an agent with an x402-capable crypto wallet (e.g. a Coinbase agentic wallet) pays it directly (POST, 402 Payment Required, signed retry); and checkout_url — the hosted page a human opens in a browser to pay with their own wallet. Use this when a balance purchase reports insufficient funds and the user wants to top up with crypto/USDC.
Always present the exact server-computed price returned here — never recompute it. This tool charges nothing by itself.
RIGHT AFTER handing over the link (or paying x402_url), start polling get_coinbase_payment_status with the returned payment_code — keep calling it while status is 'pending' and stop_polling is false (each call waits ~10s server-side). If stop_polling turns true, stop and show its user_message exactly as given; check again when the user says they have paid. The funds are only credited once that reports status 'completed' (poll again while it reports 'pending'). Then retry the balance purchase.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | USD amount to add to the Atom account balance. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| price | No | Exact total the checkout charges. | |
| success | Yes | ||
| currency | No | ||
| x402_url | No | x402 payment endpoint for agent wallets: POST it, get 402 Payment Required, sign and retry. Prefer this over checkout_url when an x402 wallet is connected. | |
| checkout_url | Yes | Hosted Coinbase checkout page — give this to a human to pay in a browser. | |
| funds_amount | No | Amount that will be credited to the balance. | |
| payment_code | Yes | Pass to get_coinbase_payment_status after paying. | |
| processing_fee | No |