https://pay.coinbase.com/v3/sell/<params>
URL which you direct your users to. Be sure to include the following parameters:
partnerUserId
: Your App’s unique user identifierredirectUrl
: User will be taken after they submit an offramp transaction (Add your url to your onramp app domain allowlist on CDP portal, Coinbase will validate that this is in your App’s domain allowlist. You can also use localhost domain for testing)addresses
: The address of the user cashing out crypto for fiat. This address must contain the funds to be sold when the offramp transaction is created.sessiontoken
: used to securely authenticate users and manage sessions (by not exposing appId and address in the URL)partnerUserId
.sell_amount
, asset
, network
, and to_address
to create an onchain send transaction in your App.
to_address
is a Coinbase managed onchain address where send funds to be offrampedfrom_address
, to_address
, amount
, network
, and asset
.
from_address
as it changes after every transaction.Method | Description |
---|---|
Session Token | Optional: Provides a secure way for the client to initialize the Onramp and Offramp widget. |
Offramp Config | Returns list of countries supported by Coinbase Offramp, and the payment methods available in each country. |
Offramp Options | Returns supported fiat currencies and available crypto assets that can be passed into the Offramp Quote API. |
Offramp Quote | Provides a quote based on the asset the user would like to sell, plus the network, the crypto amount, the cashout currency, payment method, and country. |
Transaction Status | Real time transaction status updates. |
Transactions | Historical transaction status. |
rate_limit_exceeded
error.
Rate limiting is implemented using a sliding window algorithm.