Mint More Tokens

Mints additional tokens already created from a given KIP-37 contract to a specific account. You can select the number and the amount of tokens to mint. Minting needes to be preceded by creating tokens via Create Token.

Batch Items

It is possible to mint different tokens in different amounts. Different functions will be called according to the number of Batch Items (ids, amounts) in the request.

  • One element: the mint function
  • Many elements: the mintBatch function
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)

x-krn
string

The KRN (KAS Resource Name) unique to an Account Pool

Request Body schema: application/json
to
required
string

The Kaia account address of the token owner

ids
required
Array of strings

Array of the new token IDs

amounts
required
Array of strings

Array of the new token supplies (in hex.)

Responses
200

Your request was successful.

400

The request is not valid.

403

Access has been denied.

404

The resource you requested does not exist.

post/v2/contract/{contract-address-or-alias}/token/mint
Request samples
application/json
{
  • "to": "0xDc277E2D89b92336A4ee80be3c7142443FDaDE47",
  • "ids": [
    ],
  • "amounts": [
    ]
}
Response samples
application/json

Your request was successful.

{
  • "status": "Submitted",
  • "transactionHash": "0xb5a0618be3508b3fe22e35aa96063005dd4c557cf040348cc542b0726cc30f7b"
}