Convert native coins to ERC-20
Showcases the fungible token mapping capabilities
First, start a localnet
[One time] Create a fungible token mapping from a bank coin
Only required if the fungible token mapping doesn't exist. For `unibi`, it already exists at `0x7D4B7B8CA7E1a24928Bb96D59249c7a5bd1DfBe6`. To create a fungible token mapping, run the following:
FROM=nibi1zaavvzxez0elundtn32qnk9lkm8kmcsz44g7xl
nibid tx evm create-funtoken unibi \
--from $FROM \
--gas auto \
--gas-adjustment 1.5 \
--gas-prices 0.025unibi \
--yes | txThere should be a EventFunTokenCreated event that displays the newly deployed ERC-20 contract.
Convert native coins to ERC-20
Last updated
Was this helpful?