Initializes a new instance of the ERC20Contract with the provided arguments and begins fetching the token's symbol and decimals for later use.
Contains the contract address, publicClient, and optionally walletClient for interaction with the ERC20 token contract.
Private
Optional
_decimalsPrivate
Optional
_symbolAddress of the smart contract.
Read-only methods of the smart contract.
Simulated methods of the smart contract.
Rest
...parameters: [args: readonly [`0x${string}`, bigint], options?: Options]Rest
...parameters: [args: readonly [`0x${string}`, bigint], options?: Options]Rest
...parameters: [args: readonly [`0x${string}`, `0x${string}`, bigint], options?: Options]Optional
writeState-changing methods of the smart contract. Present only if walletClient is provided.
Rest
...parameters: [args: readonly [`0x${string}`, bigint], options?: Options]Rest
...parameters: [args: readonly [`0x${string}`, bigint], options?: Options]Rest
...parameters: [args: readonly [`0x${string}`, `0x${string}`, bigint], options?: Options]Gets the token decimals if they have been set; otherwise, throws an error.
Gets the token symbol if it has been set; otherwise, throws an error.
Private
getPrivate
getGenerated using TypeDoc
Extends the generic Contract class to interface specifically with ERC20 tokens. It provides properties and methods to interact with the standard ERC20 functions.