get_coin_balance
Check the balance of a specific coin type for an Aptos blockchain account. Retrieve coin balance and metadata for custom or native tokens using account address and coin type.
Instructions
Get the balance of a specific coin type for an Aptos account. This is used for checking the balance of custom coins or tokens. Returns the coin balance and metadata.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
account_address | Yes | Aptos account address, e.g., 0x1 or 0x742d35Cc6634C0532925a3b8D6Ac0C4db9c8b3 | |
coin_type | Yes | Coin type identifier, e.g., '0x1::aptos_coin::AptosCoin' or custom coin type |
Input Schema (JSON Schema)
{
"properties": {
"account_address": {
"description": "Aptos account address, e.g., 0x1 or 0x742d35Cc6634C0532925a3b8D6Ac0C4db9c8b3",
"type": "string"
},
"coin_type": {
"description": "Coin type identifier, e.g., '0x1::aptos_coin::AptosCoin' or custom coin type",
"type": "string"
}
},
"required": [
"account_address",
"coin_type"
],
"type": "object"
}