Skip to content

How to enforce fixed supply ​

Goal: guarantee, at the protocol level, that a native token can never be minted again — making its supply permanently fixed.

Why ​

CreateMint makes the caller the mint authority, and only that authority can MintToOwner. To enforce fixed supply you must renounce the authority after the final mint.

Steps ​

  1. Mint the full intended supply to its destination (e.g. a treasury account).
  2. Renounce the mint authority:
ace_buildTokenSetAuthority(mint_id_hex)   // omit new_authority → renounce
   → { payload_hex, renounced: true }

Sign and submit via ace_submitSignedPayload as the current authority.

What renouncement does ​

It sets the mint authority to the all-zero identity (RENOUNCED_AUTHORITY). After that:

  • MintToOwner fails the caller == authority check for every real signer — the zero identity has no signing key.
  • Re-renouncing is rejected.

Supply is now immutable. This is a protocol guarantee, not a process promise.

WARNING

Renouncement is irreversible. Confirm the full supply is minted and distributed before you renounce.

Released under the Apache-2.0 License · Testnet · GitHub