Skip to main content

Interface: Erc20Input

moralis-monorepo / @moralisweb3/common-evm-utils / Erc20Input

Interface: Erc20Input

@moralisweb3/common-evm-utils.Erc20Input

Valid ERC20 token input

Example

const input = {
contractAddress: "0x0a385f86059e0b2a048171d78afd1f38558121f3",
name: "USD Coin on BSC",
symbol: "USDC",
logo: null,
logoHash: null,
thumbnail: null,
decimals: "6",
chain: 1,
possibleSpam: false,
}

Table of contents

Properties

Properties

chain

chain: EvmChainish


contractAddress

contractAddress: EvmAddressInput


decimals

decimals: string | number


Optional logo: null | string


logoHash

Optional logoHash: null | string


name

name: string


possibleSpam

Optional possibleSpam: boolean


symbol

symbol: string


thumbnail

Optional thumbnail: null | string