Add Minter

Grants a specified account the authority to mint and burn tokens from a contract. You can remove the authority by using Remove Minter.

NOTE

minter is the address that will be granted the authority. It needs to be managed by Wallet API in order to be use Remove Minter. Otherwise, you have to sign and send the transaction yourself.

Sender

The account that sends the transaction to grant the authority for tokens. If you leave it blank, it will automatically be set to the deployer address as default . You can find the deployer address by KIP7Deployer.

You can omit the KRN if the sender address is managed by the KIP-7 or Wallet Service account-pool.
Otherwise you have to provide the KRN object in the header (x-krn: krn:{chain-id}:wallet:{account-id}:account-pool:{pool name}).

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)

Request Body schema: application/json
sender
string

Kaia account address that grants authority to mint and burn a token. The default value is the deployer's address'.

minter
required
string

The Kaia account address to be granted authority to mint and burn tokens.

Responses
200

Your request was successful.

400

Your request is not valid.

401

The credential you entered is invalid.

403

Access has been denied.

404

The resource you requested doesn't exist.

post/v1/contract/{contract-address-or-alias}/minter
Request samples
application/json
{
  • "sender": "0x1eb15b3ccb2add3bfe132a4f6ad21ca62cf94e6d",
  • "minter": "0x9eaf20b40e0f1ced5dbba6f5cfb0d3e12b0534f4"
}
Response samples
application/json
{
  • "status": "Submitted",
  • "transactionHash": "0xf7843f034f2283d0ec32886a69d44a85ce19af25d8bd89d84322b973a86328a8"
}