Fetches the digital asset balance for a single developer-controlled wallet using its unique identifier.
Represents the input for retrieving the token balance of a wallet.
The ID of the wallet to retrieve the tokens for.
Specifies whether to include all tokens.
The name of the token to filter for.
Token standard.
An array of token addresses.
Used to return items after the specified item exclusively.
SHOULD NOT be used in conjunction with pageBefore
.
Used to return items before the specified item exclusively.
SHOULD NOT be used in conjunction with pageAfter
.
The number of items to return.
1const response = await client.getWalletTokenBalance({
2 id: 'e518abf8-882d-4fa1-931e-596b28aa970b',
3})
4console.log(response.data?.tokenBalances)
1{
2 "data": {
3 "tokenBalances": [
4 {
5 "amount": "6.62607015",
6 "token": {
7 "id": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
8 "name": "",
9 "standard": "ERC20",
10 "blockchain": "MATIC-AMOY",
11 "decimals": 0,
12 "isNative": false,
13 "symbol": "",
14 "tokenAddress": "0xca9142d0b9804ef5e239d3bc1c7aa0d1c74e7350",
15 "updateDate": "2023-01-01T12:04:05Z",
16 "createDate": "2023-01-01T12:04:05Z"
17 },
18 "updateDate": "2023-01-01T12:04:05Z"
19 }
20 ]
21 }
22}