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 uses cases
- Retrieve native coin balance - Use the following request body to retrieve 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"
}
}
}