KIP-17 is the standard for NFT (Non-fungible Token) contracts defined by Klaytn (previous name of Kaia). With KAS KIP-17 API, you can easily mint and manage KIP-17 tokens. It acts the same way as Ethereum's ERC-721, but with expanded options for Mint/Burn Tokens. Unlike Ethereum, Mint/Send/Burn Token APIs all record event logs. The main features are KIP-17 API are:

  • Deploy Contract
    • Retrieve Contract List
    • Retrieve Contract Data
    • Update Contract
  • Mint Token
    • Retrieve Token History
    • Retrieve Token Data
  • Send Token
    • Approve/Deny Token Transfers
    • Approve/Deny All Token Transfers
  • Burn Tokens
  • Retrieve List of Tokens by Address
    • Get Token Ownership History

Deploy Contract

Deploys a new KIP-17 contract based on given parameters. Pass the following parameters in the request schema and send a request to the endpoint. It returns a boolean value indicating if the deployment was successful or not and the transaction hash.

  • alias

    KAS supports contract alias which can be used in place of the contract address in the parameters. With a simple alias of your choice, you can make API requests easily without the complicated contract addresses.

  • symbol

    Symbol of the contract to deploy.

  • name

    Name of the contract to deploy.

Mint Tokens

Mint new tokens from the deployed contract. You can specify the contract using the contract address or alias. KIP-17 tokens can only be minted from KIP-17 contracts. Pass the contract address in which the tokens are minted along with the initial supply and send a request to the endpoint. It returns a boolean value indicating if the deployment was successful or not and the transaction hash.

  • to

    The account in which the tokens are minted.

  • id

    The ID of the token to mint.

  • uri

    The URI that stores the metadata of the token to mint.

Send Tokens

Send tokens. You can specify the contract using the contract address or alias. Pass the contract address to which the tokens are sent along with the amount and send a request to the endpoint. It returns a boolean value indicating if the deployment was successful or not and the transaction hash.

  • to

    The account to which the tokens are sent.

  • amount

    The amount of tokens to send.

The parameters you entered when calling the API will be stored in KAS Console Service > KIP Series > KIP-17 > Contracts. Do you want to test out KIP-17 API yourself? Visit Tutorial for detailed instructions. You can find the specifications for the API in KAS API Reference.

If you want to know more about the KIP-17 standard, please refer to Klaytn Improvement Proposals.