fund_wallet
Fund a wallet with fiat via MoonPay (card/bank/Apple Pay -> USDC).
Returns a hosted checkout_url for the user to complete payment + a session_id to poll with get_onramp_status. Purchased USDC settles directly to wallet_address (non-custodial). payment_method: card | bank | apple_pay. The fee is charged on amount_usd notional past the daily free tier (x402 payment_header).
idempotency_key (optional): a client-generated UUID.
Retrying with the same key + same args replays the original result (same
checkout_url/session_id) instead of creating a second MoonPay session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | No | USDC | |
| caller_id | No | ||
| amount_usd | Yes | ||
| pay_in_crank | No | ||
| payment_header | No | ||
| payment_method | No | card | |
| wallet_address | Yes | ||
| idempotency_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||