Fetches the token balance for a user-controlled wallet.
Represents the input parameters for retrieving the token balance of a wallet.
Unique system-generated identifier for the user.
Specifies whether to include all tokens.
The name of the token to filter for.
Token standard.
An array of token addresses.
The ID of the wallet to retrieve the tokens for.
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.
The JSON Web Token (JWT) representing the user.
Specifies whether to include all tokens.
The name of the token to filter for.
Token standard.
An array of token addresses.
The ID of the wallet to retrieve the tokens for.
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 walletId: 'wallet-id',
3 userToken: 'dummy-user-token',
4})
5console.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}