Minting is the action to create a new token on the blockchain and send it to a specific wallet.


Mint a token

Firstly, we need to mint the token.

Remember to switch <TOKEN_TYPE_ID> and <WALLET_ID>.
curl --request POST \
  --url \
  --header 'Authorization: Bearer $API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "itemTypeId": "<TOKEN_TYPE_ID>",
  "walletId": "<WALLET_ID>",
  "amount": 1

You will receive a status 202 with an object containing the ID of the transaction.


Read a transaction

Every new mint is queued up to mitigate the possibility of a transaction failing.

Now, let’s check the transaction’s status on the blockchain.

Remember to switch <TRANSACTION_ID>.
curl --request GET \
  --header 'Authorization: Bearer $API_KEY'

You will receive a status 200 with an object containing the transaction status and transaction hash.

Congratulations! You can check your transaction on the block explorer. Just paste the transaction hash in the search field.

Any problems during this guide? Check some possible troubleshooting.