Issuing assets

After creating an asset, learn how to issue assets to a user.

🚧

Prerequisites

You need to have at least created an asset before continuing.

The next step after creating an asset is issuing an asset. Issuing assets to a user allow that user to have funds to manipulate with.

You can also issue a multi-asset. The steps are the same as issuing an asset.

🚧

Requirements

You need your API key to perform the actions on this page.
You also need the Tracker Admin Role.


Issuing assets

Issue assets by performing a standard POST call with your API key in the header. Your API key must be valid for this to work. If you don't have an API key, follow this short tutorial to get one.

Let's try it out!

curl -X POST \
  http://api.mantleblockchain.com/tracker/{{PRODUCT_ID}}/assets/{{ASSET_ID}}/issue \
  -H 'Accept: text/plain, application/json, text/json' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: {{API_KEY}}' \
  -d '{ "recipientEmail": "{{RECIPIENT_EMAIL}}", "amount": {{AMOUNT_TO_ISSUE}} }'

❗️

Recipient Email

The email of the user must be registered on the Mantle Platform.

Replace the following parameters:

{{PRODUCT_ID}}: Your Product id

📘

Issuing multi assets

You need to replace the {{ASSET_ID}} parameter by the multi asset ID.

{{ASSET_ID}}: The ID of the asset you want to issue
{{API_KEY}}: Your API key
{{RECIPIENT_EMAIL}}: The email of the user that receive the assets, the user must be part of the Mantle Platform
{{AMOUNT_TO_ISSUE}}: The amount to issue (of the asset)

👍

Congratulations!

You've just issued an amount of an asset to a user in Tracker!