Fund Xrpl Wallet Via Coinbase
fund_xrpl_wallet_via_coinbaseBuy XRP on Coinbase and withdraw it to an XRPL address in one call.
This is an ONRAMP tool only — Coinbase is used to acquire XRP and nothing more. All escrow creation and settlement happens on XRPL, not on Coinbase. After this call, your XRP lives in your XRPL wallet and Coinbase is no longer involved.
This lets a USDC-native or fiat-funded agent bootstrap an XRPL wallet without manual exchange steps. Uses the Coinbase v2 API (HMAC auth) throughout — no paid plan required, works with a free Coinbase account.
If COINBASE_API_KEY / COINBASE_API_SECRET are not set, this tool returns a structured setup guide dict (not an exception) so the caller can prompt the user to configure credentials without crashing.
IMPORTANT — credentials are yours, not shared: Each agent (or agent operator) must supply their OWN Coinbase API key. Never use someone else's key — it would charge their account, not yours. The AgentTrust MCP server itself holds no Coinbase credentials. Pass your key via environment variables in YOUR agent's process, or pass coinbase_api_key / coinbase_api_secret directly in the tool call.
One-time human setup (takes ~5 minutes):
Create a free account at coinbase.com and complete KYC (passport/ID)
Go to coinbase.com/settings/api → New API Key
Grant: wallet:accounts:read, wallet:buys:create, wallet:transactions:send
Set COINBASE_API_KEY and COINBASE_API_SECRET in your agent's environment
After setup, this tool is fully autonomous — no human needed per transaction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| usd_amount | No | USD to spend (default $3 — covers 1 XRP reserve + Coinbase fees + XRP price variance buffer) | |
| xrpl_address | Yes | Destination XRPL address (your wallet's public address; get it from get_wallet_setup_guide() or create_agent_wallet()) | |
| coinbase_api_key | No | Your Coinbase API key (falls back to COINBASE_API_KEY env var) | |
| coinbase_api_secret | No | Your Coinbase API secret (falls back to COINBASE_API_SECRET env var) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||