Skip to main content

Overview

The ERC20 precompile provides standard ERC20 token functionality for native Cosmos tokens that have been registered for EVM compatibility. Each registered token pair gets its own unique precompile contract address. This allows for seamless interaction with native Cosmos assets through familiar ERC20 interfaces. Address: Dynamic (assigned per token pair registration) Related Module: x/erc20

Methods

totalSupply

Returns the total amount of tokens in existence.

balanceOf

Returns the token balance of a specified account.

transfer

Moves tokens from the caller’s account to a recipient.

transferFrom

Moves tokens from one account to another using an allowance.

approve

Sets the allowance of a spender over the caller’s tokens.

allowance

Returns the remaining number of tokens that a spender is allowed to spend on behalf of an owner.

name

Returns the name of the token.

symbol

Returns the symbol of the token.

decimals

Returns the number of decimals used for the token.

Full Solidity Interface & ABI

ERC20 Solidity Interface
ERC20 ABI