ROOT
token?ROOT token contract address is 0xcCcCCccC00000001000000000000000000000000
and it fully supports the ERC-20 standard.
:::note
ROOT token has 6 decimals and its ID is 1
.
:::
XRP
token or any other ERC-20 tokens?Just like the ROOT token, XRP and any other ERC-20 token contract addresses can be derived from its native asset IDs.
Tip: To retrieve a list of available tokens and their asset IDs, check out the Tokens section in our Block Explorer.
It's possible to create an ERC-712 collection by calling initializeCollection()
method exposed by the nft
precompile.
Caution:
The royaltyEntitlements
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) * 100 = 10%
).
Once the collection is created, use the same owner
wallet to mint the NFT:
The code below is the minimum hardhat
configuration to deploy smart contracts on The Root Network.