Get Token Balance

Returns the owner's balance of the tokens from a specified KIP-7 contract.

Request
Security:
path Parameters
contract-address-or-alias
required
string

Contract address (in hex.) or alias.

owner
required
string

The Kaia account address whose balance is requested.

header Parameters
x-chain-id
required
string

Kaia Network Chain ID (1001 or 8217)

Responses
200

Your request was successful.

400

Your request is not valid.

401

The credential you entered is invalid.

404

The resource you requested doesn't exist.

get/v1/contract/{contract-address-or-alias}/account/{owner}/balance
Request samples
curl -i -X GET \
  -u <username>:<password> \
  'https://kip7-api.klaytnapi.com/v1/contract/{contract-address-or-alias}/account/{owner}/balance' \
  -H 'x-chain-id: string'
Response samples
application/json

Your request was successful.

{
  • "balance": "0x10",
  • "decimals": 8
}