In this articleThis guide will walk you through how to mint and burn tokens via Taurus CAPITAL APIs. Note that minting EVM based tokens such as ERC 20 tokens is covered in the following article under Smart Contract Mint & Burn.
There are several prerequisite steps that must be taken prior to minting and burning tokens.
- You must have a deployed digital asset managed by Taurus CAPITAL.
- The contract instance must be whitelisted (required to import the asset into CAPITAL)
- You must have transaction governance defined for the Asset (required to import the asset into CAPITAL).
- You must have contract interaction governance rules that enable
mintandburnactions on the relevant blockchain.- You must have a price for the token (at least one active rate from default PROTECT currency to the respective token).
WarningIf any of the above are missing, mint/burn endpoints will not error. The request will be created and then the mint or burn operation will fail.
Supported Native Tokens
There are separate mint and burn endpoints depending on the token's respective blockchain. Both mint and burn operations follow Taurus' request flow and as such, each call results in the creation of a request which will then need to be approved per the' governance rules in place (see prerequisites above).
We currently support native tokens for Solana and will be adding support for additional tokens in the future.
Solana Tokens
Relative endpoints
Step by step instructions:
- Retrieve the
addressIdof the address authorized to mint. This is the token owner. (you can use the List Addresses endpointfor this. - Retrieve the
addressIdfor the address you where minted tokens should go. - Determine the amount in the smallest units of the token. For example, for a token with 4 decimals, 1 token would be represented by 1000.
- Call theCreate a SOL token mint request endpoint.
Similarly, a burn request can be made by calling the Create a SOL token burn requestendpoint. This endpoint accepts a fromAddressId which similarly to mint operations, must be the owner of the token.
Future tokens
In the future as Taurus expands, additional native tokens will be supported and guides will be displayed on this page.