KIP-37 is the standard for MT (Multi Token) contract defined by Klaytn. With KAS KIP-37 API, you can easily mint and manage KIP-37 tokens. It acts the same way as Ethereum's ERC-1155, but with expanded options for Mint/Burn Tokens. The main features of KIP-37 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-37 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.

  • 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.

  • uri

    The URI that stores the metadata 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-37 tokens can only be minted from KIP-37 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.

  • 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-37 > Contracts. Do you want to test out KIP-37 API? 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-37 standard, please refer to Klaytn Improvement Proposals.