Get Contract

Returns the data for a specified KIP-7 contract. You can use either the contract alias or contract address.

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

Contract address (in hex.) or alias.

header Parameters
x-chain-id
required
string

Kaia Network Chain ID (1001 or 8217)

Responses
200

Your request was successful.

401

The credential you entered is invalid.

404

The resource you requested doesn't exist.

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

Your request was successful.

{
  • "address": "0x0f73bb170deb398180f02e60d7ea154c270b8fb9",
  • "decimals": 8,
  • "name": "MyKIP7",
  • "symbol": "MSK7",
  • "totalSupply": "0x500",
  • "alias": "my-first-kip7",
  • "options": {
    }
}