Quickstart

Learn how to issue yourself some assets under 5 minutes.

🚧

Requirements

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

If you don't have an API key, please refer to this section to get your API key.


You can issue yourself some assets in two steps:

  • Create the asset
  • Issue some assets

Create the asset

Replace the following parameters:

{{PRODUCT_ID}}: Your Product id
{{API_KEY}}: Your API key
{{ASSET_NAME}}: The name of the asset, choose whatever you want

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

You should have this as a response:

{
  "id": "{{ASSET_ID}}",
  "name": "{{ASSET_NAME}}",
  "blockchainStatus": "Unconfirmed",
  "creationDate": "{{CREATION_DATE}}"
}

Keep the {{ASSET_ID}} value, because we will use it to issue ourselves some assets.

Issue assets

Replace the following parameters:

{{PRODUCT_ID}}: Your Product id
{{ASSET_ID}}: The asset ID from the previous step
{{API_KEY}}: Your API key
{{RECIPIENT_EMAIL}}: Your email, it should be the one you use in the Mantle Platform

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": 100 }'

Verify your asset balances

Let's verify if the issue was successful.

Replace the following parameters:

{{PRODUCT_ID}}: Your Product id
{{API_KEY}}: Your API key

curl -X GET \
  http://api.mantleblockchain.com/tracker/{{PRODUCT_ID}}/balances \
  -H 'Accept: text/plain, application/json, text/json' \
  -H 'x-api-key: {{API_KEY}}'

You should have 100 of the asset you've just created.

👍

Congratulations!

You've issued yourself 100 of the asset in Tracker!