Skip to content

List tokens

GET/assets/tokens

Query parameters

NameTypeDescriptionRequired
cursor
string
Optional cursor to get next pages (based on the next key on query response)
search
string
Search by name, ticker, or contract address
network
string
TODO

Response schema

{
// Next page cursor
next: string | null;
// Array of results
results: Array<{
// Asset identifier
id: string;
// Asset name
name: string;
// Asset type
type:
| "BITCOIN_LIKE"
| "CANTON_LIKE"
| "CARDANO_LIKE"
| "ETHEREUM_LIKE"
| "GENERIC_LIKE"
| "POLKADOT_LIKE"
| "RAW_SIGNING"
| "RIPPLE_LIKE"
| "SOLANA_LIKE"
| "STELLAR_LIKE"
| "SUI_LIKE"
| "TEZOS_LIKE"
| "TRON_LIKE"
;
// Asset units
units: Array<{
// Unit denomination, e.g: wei, Gwei, etc.
code: string;
// Full name
name: string;
// Number of decimals place
magnitude: number;
}
>
;
// Token contract address
contractAddress: string;
// Parent currency
currency: string;
}
>
;
}

Examples

bash
curl \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer {jwt}" \
  "$API_BASE_URL/assets/tokens"
ts
const url = "<base-url>/assets/tokens";

const headers = {
  "Content-Type": "application/json",
  Authorization: "Bearer <jwt>"
};

fetch(url, { headers }).then(res => {
  console.log(res)
});
python
import requests

url = "<base-url>/assets/tokens"

headers = {
  "Content-Type": "application/json",
  "Authorization": "Bearer <jwt>"
}

print(requests.get(url, headers=headers))