Transferring assets

Learn how to transfer assets to another user.

🚧

Prerequisites

You need to have at least created an asset and issued assets to yourself before continuing.

After the creation and the issue of an asset, you can now transfer your assets to another user.

🚧

Requirements

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


Transferring assets

Transfer assets from your wallet to another user 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}}/transfer \
  -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_TRANSFER}} }'

❗️

Recipient Email

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

Replace the following parameters:

{{PRODUCT_ID}}: Your Product id

📘

Transferring 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_TRANSFER}}: The amount asset to transfer

👍

Congratulations!

You've just transferred an amount of your assets to another user in Tracker!