Create Tokens

Creates a new token from the given KIP-37 contract. You can create a token with a specific token ID only once. Additional minting is possible through Mint Tokens.

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
id
required
string

The ID of the new token; cannot use an existing one.

initialSupply
required
string

Initial supply (in hex.)

uri
required
string

Token URI

Responses
200

Your request was successful.

400

The request is not valid.

401

The credential you provided is invalid.

403

Access has been denied.

404

The resource you requested does not exist.

409

There was a conflict with the current state of the server.

post/v2/contract/{contract-address-or-alias}/token
Request samples
application/json
{}
Response samples
application/json

Your request was successful.

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