Prerequisites
- A
DEPLOYEDtoken (see Create a QRC-20 token). - An API key with
tokens:mintandtokens:burn. - The on-chain
MINTERand/orBURNERrole granted to the vault account performing the operation. - An approval policy attached to the token.
Mint flow
token.minted webhook, which carries the on-chain transactionHash.
Burn flow
token.burned.
Required permissions
If the on-chain role is missing, you receive
TOKEN_MINT_NOT_ALLOWED (1706) or TOKEN_BURN_NOT_ALLOWED (1707).
Approval policy
Configure stringent rules for supply changes:REQUIRE_APPROVALwith multi-approver quorum.MAX_AMOUNTper single mint or burn.DAILY_LIMITaggregated per token.TIME_WINDOWto prevent off-hours operations.
Idempotency
Idempotency-Key is required on every mint and burn request. Reuse the same key on retry; never vary the key for the same logical request.