Skip to main content
POST
GetBalance
Returns the balance as a decimal string in whole native coin or token units. For example, "1.2" means 1.2 USDC. Omit tokenAddress for the native coin. For Stellar issued assets, use CODE-ISSUER as tokenAddress.

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:

"<string>"

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 identifier; omit for the native coin. For Stellar issued assets, use CODE-ISSUER.

Example:

"<string>"

Response

200 - application/json

OK

balance
string

Balance as a decimal string in whole native coin or token units. For example, "1.2" means 1.2 USDC.

Example:

"0.12128"

error
object | null

The error is null when success.