asset
and assetsExt
that make fungible asset management easy and intuitive, highly optimized for efficiency and stable transaction fees. Additionally, fungible assets on The Root Network are ERC-20 compatible, once created they are tradable on both native and EVM layers.
The following guide will walk you through how to create, mint, and manage a fungible asset using The Root Network Portal.
100 ROOT
to reserve the asset in the chain storage and at least 0.1 XRP
for initial asset creation.assetsExt.createAsset()
name
: The name of the asset.symbol
: The symbol of the asset.decimals
: The number of decimals in the asset, max is 18 decimals.minBalance
(optional): The minimum balance of this new asset that any single account must have. If an account’s balance is reduced below this, then it collapses to zero.owner
(optional): The owner of the asset, defaults to the caller.assetsExt.mint()
assetId
: The asset ID to mint. The caller must be the owner of the asset.beneficiary
: The account to receive the minted tokens.amount
: The amount to mint in the smallest unit. If your asset has 6
decimals, to mint 1 million tokens, it will be 1000000000000
(with 12 zeros).assetsExt.transfer()
assetId
: The asset ID to mint. The caller must be the owner of the asset.destination
: The account to be transferred to.amount
: The amount to transfer in the smallest unit. If your asset has 6
decimals, to mint 1 million tokens, it will be 1000000000000
(with 12 zeros).keepAlive
: The flag to ensure caller still have enough existence balance.futurepass.proxyExtrinsic
, as per the screenshot:
69372
, which is 11064
in hex or 00011064
with padded "0"
up to 8 characters, your asset ERC-20 address will be: