curl --request GET \
--url https://api.hypermid.io/v1/onramp/assets \
--header 'X-API-Key: <api-key>'{
"data": {
"assets": [
{
"symbol": "ETH",
"name": "Ethereum",
"chainId": 1,
"address": "0x0000000000000000000000000000000000000000",
"decimals": 18,
"logoURI": "https://assets.hypermid.io/tokens/eth.png",
"minAmountUSD": 20,
"maxAmountUSD": 10000
},
{
"symbol": "USDC",
"name": "USD Coin",
"chainId": 1,
"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"decimals": 6,
"logoURI": "https://assets.hypermid.io/tokens/usdc.png",
"minAmountUSD": 10,
"maxAmountUSD": 50000
},
{
"symbol": "ETH",
"name": "Ethereum",
"chainId": 42161,
"address": "0x0000000000000000000000000000000000000000",
"decimals": 18,
"logoURI": "https://assets.hypermid.io/tokens/eth.png",
"minAmountUSD": 20,
"maxAmountUSD": 10000
},
{
"symbol": "SOL",
"name": "Solana",
"chainId": 1151111081099710,
"address": "So11111111111111111111111111111111111111112",
"decimals": 9,
"logoURI": "https://assets.hypermid.io/tokens/sol.png",
"minAmountUSD": 10,
"maxAmountUSD": 10000
}
]
},
"error": null,
"meta": {
"requestId": "v2e3f4a5-b6c7-8901-5678-012345678901",
"timestamp": 1711234580,
"rateLimit": {
"limit": 2000,
"remaining": 1978,
"reset": 1711234627
}
}
}
List crypto assets available for fiat purchase
curl --request GET \
--url https://api.hypermid.io/v1/onramp/assets \
--header 'X-API-Key: <api-key>'{
"data": {
"assets": [
{
"symbol": "ETH",
"name": "Ethereum",
"chainId": 1,
"address": "0x0000000000000000000000000000000000000000",
"decimals": 18,
"logoURI": "https://assets.hypermid.io/tokens/eth.png",
"minAmountUSD": 20,
"maxAmountUSD": 10000
},
{
"symbol": "USDC",
"name": "USD Coin",
"chainId": 1,
"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"decimals": 6,
"logoURI": "https://assets.hypermid.io/tokens/usdc.png",
"minAmountUSD": 10,
"maxAmountUSD": 50000
},
{
"symbol": "ETH",
"name": "Ethereum",
"chainId": 42161,
"address": "0x0000000000000000000000000000000000000000",
"decimals": 18,
"logoURI": "https://assets.hypermid.io/tokens/eth.png",
"minAmountUSD": 20,
"maxAmountUSD": 10000
},
{
"symbol": "SOL",
"name": "Solana",
"chainId": 1151111081099710,
"address": "So11111111111111111111111111111111111111112",
"decimals": 9,
"logoURI": "https://assets.hypermid.io/tokens/sol.png",
"minAmountUSD": 10,
"maxAmountUSD": 10000
}
]
},
"error": null,
"meta": {
"requestId": "v2e3f4a5-b6c7-8901-5678-012345678901",
"timestamp": 1711234580,
"rateLimit": {
"limit": 2000,
"remaining": 1978,
"reset": 1711234627
}
}
}
{
"data": {
"assets": [
{
"symbol": "ETH",
"name": "Ethereum",
"chainId": 1,
"address": "0x0000000000000000000000000000000000000000",
"decimals": 18,
"logoURI": "https://assets.hypermid.io/tokens/eth.png",
"minAmountUSD": 20,
"maxAmountUSD": 10000
},
{
"symbol": "USDC",
"name": "USD Coin",
"chainId": 1,
"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"decimals": 6,
"logoURI": "https://assets.hypermid.io/tokens/usdc.png",
"minAmountUSD": 10,
"maxAmountUSD": 50000
},
{
"symbol": "ETH",
"name": "Ethereum",
"chainId": 42161,
"address": "0x0000000000000000000000000000000000000000",
"decimals": 18,
"logoURI": "https://assets.hypermid.io/tokens/eth.png",
"minAmountUSD": 20,
"maxAmountUSD": 10000
},
{
"symbol": "SOL",
"name": "Solana",
"chainId": 1151111081099710,
"address": "So11111111111111111111111111111111111111112",
"decimals": 9,
"logoURI": "https://assets.hypermid.io/tokens/sol.png",
"minAmountUSD": 10,
"maxAmountUSD": 10000
}
]
},
"error": null,
"meta": {
"requestId": "v2e3f4a5-b6c7-8901-5678-012345678901",
"timestamp": 1711234580,
"rateLimit": {
"limit": 2000,
"remaining": 1978,
"reset": 1711234627
}
}
}
const assets = await client.getOnrampAssets();
// Find ETH on Ethereum
const ethOnMainnet = assets.data.assets.find(
(a) => a.symbol === "ETH" && a.chainId === 1
);
console.log(`ETH purchase range: $${ethOnMainnet.minAmountUSD} - $${ethOnMainnet.maxAmountUSD}`);
Partner API key. Optional for public endpoints, required for /v1/partner/*.
Crypto token symbol, e.g. 'ETH'
Chain name, e.g. 'ethereum'
Fiat currency, e.g. 'USD'