ROOT
token?Since ROOT token is a security token, it's managed by the balances
pallet. To transfer ROOT tokens, use the following snippet:
Note: ROOT token has 6 decimals.
XRP
or any other fungible tokens?XRP and any other non-default fungible tokens are managed by the assets
pallet, separate from the balances
pallet. That also means you need to provide the asset ID when you want to transfer any of these tokens.
Tip: To retrieve a list of available tokens and their asset IDs, checkout Tokens section in our Block Explorer.
To create your NFT collection, call the nft.createCollection()
extrinsic with the following parameters:
Caution: The royaltiesSchedule
is in permill (parts per million) scaling, so if you want a 10% royalty, that would be 100,000
(as 100_000 / 1_000_000 = 0.1
).
Once your collection is created, the collection owner can call the nft.mint()
method on the collection contract to start minting additional tokens so long as the max issuance has not been reached: