Get Wallet Network Assets
Returns what one node wallet holds on one network: the network's native coin and every active stablecoin deployed on that network, each with the wallet's balance and its US dollar and Turkish lira value. The network must belong to the wallet's chain. The owning node is read from the wallet, and that node must be your own node or below it.
Balances are best-effort: when the custody provider cannot report the native balance it is "0", when it cannot report the stablecoin balances assets is empty, and the USD/TRY values are omitted when no price is available.
Required permission: node:summary:view
Request
GET /v2/admin/wallets/{wallet_id}/networks/{network_id}/assets
Parameters
| Name | Type | In | Description |
|---|---|---|---|
wallet_id | string | path | Required. A node wallet's id |
network_id | string | path | Required. A network of the wallet's chain (Get Wallet Networks) |
Headers
| Name | Description |
|---|---|
Authorization | Required. Bearer <access_token> |
Example
curl --request GET \
--url '{{baseUrl}}/v2/admin/wallets/6a53f3dfad48accdb46eaf9e/networks/6740e0a20000000000000101/assets' \
--header 'Authorization: Bearer <access_token>'
Response
{
"network_id": "6740e0a20000000000000101",
"network_name": "Ethereum",
"native_currency_symbol": "ETH",
"native_currency_logo": "https://s3.tokenizationtr.com/currencies/eth.svg",
"native_currency_decimal": 18,
"balance_native": "0.10861192205980251",
"balance_native_usd": "352.17",
"balance_native_try": "12051.88",
"assets": [
{
"id": "690a3dbd60db602e220d3d12",
"name": "USD Coin",
"symbol": "USDC",
"logo": "https://s3.tokenizationtr.com/currencies/usdc.svg",
"decimal": 6,
"amount": "1250.5",
"amount_usd": "1250.5",
"amount_try": "42795.17"
}
]
}
Response Fields
| Field | Type | Description |
|---|---|---|
network_id | string | Network id |
network_name | string | Network name |
native_currency_symbol | string | Symbol of the network's native coin |
native_currency_logo | string | Logo URL of the native coin |
native_currency_decimal | integer | Decimal places of the native coin |
balance_native | string | The wallet's native-coin balance |
balance_native_usd | string | That balance in US dollars. Omitted when no price is available |
balance_native_try | string | That balance in Turkish lira. Omitted when no price is available |
assets | array | The active stablecoins (currency tokens) deployed on the network, with the wallet's balance. Empty when their balances could not be read |
assets[].id | string | Currency token id (what Withdraw takes as currency_token_id) |
assets[].name | string | Token name |
assets[].symbol | string | Token symbol |
assets[].logo | string | Logo URL. Empty when the token has no logo |
assets[].decimal | integer | Decimal places of the token |
assets[].amount | string | The wallet's balance |
assets[].amount_usd | string | That balance in US dollars. Omitted when no price is available |
assets[].amount_try | string | That balance in Turkish lira. Omitted when no price is available |
The native coin is reported inline rather than in assets because it has no currency token id. Amounts are decimal strings; see Amounts and Percentages.
Errors
| Status | Code | Description |
|---|---|---|
| 400 | 10016 | wallet_id is not a valid id |
| 400 | 10001 | Wallet not found, it is not a node wallet, its node no longer exists, or the network is not on the wallet's chain (node domain 2) |
| 403 | 10005 | The wallet's node is outside your part of the hierarchy (node domain 2) |
See Errors for the error format and common codes.