Get Approved Balance

Returns the remaining balance of the tokens that the owner authorized the spender to send.

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

Contract address (in hex.) or alias.

owner
required
string

The Kaia account address of the token's owner.

spender
required
string

The Kaia account address granted the authority to send the tokens.

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

Your request was successful.

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