Generate a Coinbase onramp URL (Session Token flow)
Generate a Coinbase hosted onramp URL for fiat-to-crypto funding.
How it works:
- Creates a session token bound to user's Smart Account earnings wallet
- Returns URL with session token embedded
- User completes purchase in Coinbase UI
- Funds are sent to user's Smart Account earnings wallet (non-custodial)
- Frontend auto-transfers the settled amount to server (tipping) wallet
ToS Compliance: Fiat onramp funds must first go to a non-custodial wallet (Smart Account earnings wallet) before being transferred to a custodial wallet (server/tipping).
Response: Returns onramp_url to redirect the user.
Testing: No E2E test - the onramp flow completes asynchronously in Coinbase's hosted UI. URL generation is covered by unit tests.
See: https://docs.cdp.coinbase.com/onramp-&-offramp/onramp-apis/generating-onramp-url
Query parameters
Fiat amount to onramp in USD (e.g., '10.00').
Fiat amount to onramp in USD (e.g., '10.00').
Payment method: CARD (default) or ACH_BANK_ACCOUNT.
Payment method: CARD (default) or ACH_BANK_ACCOUNT.
Target blockchain network (e.g., base, base-sepolia, ethereum).
Target blockchain network (e.g., base, base-sepolia, ethereum).
Token to purchase (e.g., USDC, ETH).
Token to purchase (e.g., USDC, ETH).
Headers
Bearer JWT issued by Grove.
Bearer JWT issued by Grove.
Response
Successful Response
Changes
No recorded changes to this endpoint across all 1 revision of this API.