Assets API
The authoritative catalogue of assets enabled on your workspace. Fetch it at startup rather than hard-coding provider coin keys.
| Method | Path | Scope |
|---|---|---|
GET | /v1/assets | accounts:read |
curl -fsS https://api-staging.zenvault.io/api/v1/assets \
-H "Authorization: Bearer $KEY"
{
"items": [
{
"canonicalKey": "USDT_ETHEREUM",
"symbol": "USDT",
"chain": "ethereum",
"contractAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"decimals": 6,
"isNative": false,
"isTestnet": false,
"capabilities": ["contract-call", "approve"]
}
],
"nextCursor": "USDT_ETHEREUM"
}
| Field | Meaning |
|---|---|
canonicalKey | Use this exact value in every assetCanonical field |
symbol / chain | Display + chain slug |
contractAddress | Token contract (null for native assets) |
decimals | Max precision the asset supports |
isNative / isTestnet | Flags |
capabilities | e.g. contract-call, approve |
Testnet entries are excluded by default; add ?includeTestnet=true to include
them.