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
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.
The request is successful.
The request is not valid.
The credential you provided is invalid.
curl -i -X GET \ -u <username>:<password> \ 'https://node-api.klaytnapi.com/v1/metadata/ft/{address}' \ -H 'x-chain-id: string'
The request is successful.
{- "address": "0x3b3b30a76d169f72a0a38ae01b0d6e0fbee3cc2e",
- "decimals": 18,
- "name": "TEMCO",
- "symbol": "TEMCO",
- "totalSupply": "0x1363156bbee3016d70000000"
}