Create XC20 Assets
Overview
XC20 assets, created by the Moonbeam team, maintains compatibility between the EVM and Substrate framework that powers Polkadot, via precompiles — a set of built-in smart contracts made to look like ERC20s. Calling functions on an XC20 will invoke underlying Substrate functionality, which may be instructions for transferring tokens to another chain, or to send them to another local address. This compatibility layer connects the world of EVM and smart contracts to advanced Substrate-based interoperability scenarios.
Create an XC20 Asset
XC20 asset refers to interface it uses to wrap around an asset in assets-pallets
. So first we will need to create, mint and set metadata for an asset in assets-pallets
and then access it from smart-contract using XC20 precompile interface.
This section of the guide will demonstrate how to register an asset using Polkadot.js Apps.