Skip to content

List currencies

GET/assets/currencies

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

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;
}
>
;
}
>
;
}

Examples

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

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

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

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

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

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