post
https://api-sdk.lmnl.dev/api/wallet/balance
This API is a request to retrieve the coin or token balance of all addresses within the specified wallet (hot or warm MPC wallet).
To retrieve balance of a single address in a deposit wallet, use the Retrieve an address balance API.
API Use-Cases
- Retrieve Native Coin Balance: Use the following request body to retrieve the native coin balance of a wallet.
{ "wallet":{ "coin": "eth", "walletId":12345, "allToken":false } } - Retrieve Token Balance: Use the following request body to retrieve the native coin and token balance of a wallet.
{ "wallet":{ "coin": "eth", "walletId":12345, "allToken":true, "tokenOptions":{ "tokenName":"dai", "tokenAddress":"0xdc31Ee1784292379Fbb2964b3B9C4124D8F89C60" } } }
