Swap Tokens
GET /api/v1/swap/tokens
Get the full list of tokens supported by CyberPay (with real-time prices).
Request
GET /api/v1/swap/tokensNo parameters.
Response
[
{
"asset_id": "eth.ETH",
"blockchain": "eth",
"symbol": "ETH",
"decimals": 18,
"price": 2500.42,
"contract_address": null
},
{
"asset_id": "base.USDC",
"blockchain": "base",
"symbol": "USDC",
"decimals": 6,
"price": 1.0,
"contract_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}
]| Field | Type | Description |
|---|---|---|
asset_id | string | Asset ID (blockchain.symbol) |
blockchain | string | Chain identifier |
symbol | string | Token symbol |
decimals | u8 | Decimal precision |
price | f64? | USD price |
contract_address | string? | Contract address (null for native coins) |
Data is cached and updated in real-time.
