Skip to Content
DocumentationgRPC APIWalletGet wallet token balance

Get wallet token balance

Fetches the balance of a specific token in a wallet.

POST GetBalance

Request mpcvault.platform.v1.GetBalanceRequest
network_type is the type of the network.
chain_id
google.protobuf.Int64Value
(optional) chain_id is the chain id of the network.
wallet_address
string
wallet_address this is the wallet address.
token_address
google.protobuf.StringValue
(optional) token_address this is the token address if not set, it will return the balance of the native token.
Response mpcvault.platform.v1.GetBalanceResponse
balance
string
The balance is in the smallest denomination.
error
mpcvault.platform.v1.Error

enum mpcvault.platform.v1.NetworkType

0
NETWORK_TYPE_UNKNOWN
1
NETWORK_TYPE_EVM
2
NETWORK_TYPE_BITCOIN
3
NETWORK_TYPE_TRON
4
NETWORK_TYPE_APTOS
5
NETWORK_TYPE_SUI
6
NETWORK_TYPE_SOLANA
7
NETWORK_TYPE_TON
Last updated on