Prerequisite readings
Asset Register Transaction goes into detail about how to create and submit transactions, whereas, this guide will focus on the asset link operations in particular to help you build an asset tree. In the following sections, we will focus on using the ARTM library to create and manipulate an ARTM and its operations.Create Asset Links 🔑
The user must own both assets to create links unless it is an off-chain asset, where only the creator of the child asset can create a link. Linking between assets owned on a FuturePass account and FuturePass account owner EOA is allowed. As long as the ownership resolution is satisfied links can be created across chains as well.
- The first argument corresponds to the
pathor thesubjectof the link. - The second argument is the parent asset. An asset can have 0 to many links as a parent.
- The third argument is the child asset. An asset can have 0 or 1 link as a child.
Delete Asset Links 🔑
The user must own the parent asset to delete links.