Skip to main content
POST
GetBalance
Returns the balance for a wallet address—native token or a specific ERC-20/SPL token. Balance is a string for precision; use the token’s decimals to convert (e.g. ETH 18, USDC 6, SOL 9).

Authorizations

x-mtoken
string
header
required

Your API token. Required for all API requests.

Body

application/json
networkType
enum<string>
required

Type of the network.

Available options:
NETWORK_TYPE_UNKNOWN,
NETWORK_TYPE_EVM,
NETWORK_TYPE_BITCOIN,
NETWORK_TYPE_TRON,
NETWORK_TYPE_APTOS,
NETWORK_TYPE_SUI,
NETWORK_TYPE_SOLANA,
NETWORK_TYPE_TON,
NETWORK_TYPE_STELLAR
walletAddress
string
required

Wallet address.

Example:

"8HrKVJeFNGSJ2T2wSU6MxfMvua2MYgwH1FbRsdfrgthj"

chainId

Chain id of the network. Required for NETWORK_TYPE_EVM (omitting it is rejected). Defaults to 1 (Aptos mainnet) for NETWORK_TYPE_APTOS. Optional for NETWORK_TYPE_SOLANA. Ignored for the other network types. Custom EVM networks are not supported.

Example:

"137"

tokenAddress
string | null

Token address,if not set, it will return the balance of the native token.

Response

200 - application/json

Success

balance
string

The balance is in the smallest denomination.

error
object | null

The error is null when success.