Skip to content

Retrieve a list of cryptocurrencies

Request

Returns the cryptocurrencies available to your partner account for buy or sell orders. Each asset lists the blockchains it can be sent on, with the default blockchain, token contract address, chain ID, minimum amount and any countries where it is not available. Pass a blockchain id as blockchain when you request a quote.

Path
partnerstringrequired

This is the partner code provided to you during onboarding. e.g. metamask.

orderTypestringrequired

Whether to return availability for buy or sell orders.

Default:"buy"
Enum:"buy""sell"
Headers
Acceptstring
Default:"application/json"
x-api-keystring

This is the API Key that has been provided to you during onboarding.

Example:YOUR_API_KEY
curl -i -X GET \
  'https://docs.banxa.com/_mock/products/hosted-checkout/openapi/{partner}/v2/crypto/{orderType}' \
  -H 'Accept: application/json' \
  -H 'x-api-key: YOUR_API_KEY'

Responses

List of supported cryptocurrencies and their blockchains.

Bodyapplication/json
Array [
idstring
Example:"AAVE"
descriptionstring
Example:"Ethereum (ERC-20)"
blockchainsArray of objects
]
Response
[ { "id": "AAVE", "description": "Ethereum (ERC-20)", "blockchains": [ … ] }, { "id": "USDC", "description": "Ethereum (ERC-20)", "blockchains": [ … ] }, { "id": "USDT", "description": "Polygon", "blockchains": [ … ] } ]