Get FT Contract

Returns information of a specified FT contract. It can only read contracts of the ERC-20 or KIP-7 standards. To retrieve the correct information, the functions name(), symbol(), decimals() have to be implemented.

If the requested contract

  • does not exist: All fields except the contract address will be filled with empty strings or 0/-1.
  • is not of the ERC-20/KIP-7 standards: The returned results will be different depending on the contract.
  • does not implement the required functions: The fields for the function will be filled with empty strings or 0/-1.


Note

Get FT Contract API does not check for the conformity of the contract with ERC-20/KIP-7 standards, but simply calls the functions name(), symbol(), decimals() and returns the results. This means that entering a NFT contract address to a Get FT Contract API will return the name, symbol etc. of the NFT.

Request
Security:
path Parameters
address
required
string

FT contract address.

header Parameters
x-chain-id
required
string

Kaia Network Chain ID (1001 or 8217)

Responses
200

The request is successful.

400

The request is not valid.

401

The credential you provided is invalid.

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

The request is successful.

{
  • "address": "0x3b3b30a76d169f72a0a38ae01b0d6e0fbee3cc2e",
  • "decimals": 18,
  • "name": "TEMCO",
  • "symbol": "TEMCO",
  • "totalSupply": "0x1363156bbee3016d70000000"
}