Creating a multi-asset

Learn how to create a multi-asset so you can manage and trade with it.

Depending on your use case, you might want to create a stacked asset. Having a multi-asset could potentially unlock new ways of using Tracker. For example, instead of just transferring chair assets, you can now create a furniture multi-asset, which is composed of a chair asset, a table asset, and a drawer asset.

Creating a multi-asset is pretty straightforward. You just have to provide a multi-asset name and a list of the IDs of the assets used to create the multi-asset. Let's say you want to create the furniture multi-asset mentioned in the paragraph earlier, you will need to provide the name "furniture" and a list of the IDs of the chair asset, the table asset, and the drawer asset. With that information, Tracker will create a multi-asset and handle all the blockchain operations for you.



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

Creating a multi-asset

Create a multi-asset by performing a standard create asset 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 \{{PRODUCT_ID}}/multiassets \
  -H 'Accept: text/plain, application/json, text/json' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: {{API_KEY}}' \
  -d '{ "name": "{{MULTI_ASSET_NAME}}" }'
  -d '{ "assetIds": "{{ASSET_1_ID}}" }'
  -d '{ "assetIds: "{{ASSET_2_ID}}" }'

Replace the following parameters:

{{PRODUCT_ID}}: Your Product id
{{API_KEY}}: Your API key
{{MULTI_ASSET_NAME}}: The name of the new multi-asset
{{ASSET_1_ID}}: The ID of the first asset of the multi-asset
{{ASSET_2_ID}}: The ID of the second asset of the multi-asset

If you want to add more assets to the multi-asset, just add more assetIds parameters.



You've created a multi-asset in Tracker!