IERC20 class

Inheritance

Constructors

IERC20({required EthereumAddress address, required Web3Client client, int? chainId})

Properties

chainId int?
finalinherited
client Web3Client
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
self DeployedContract
finalinherited

Methods

allowance(EthereumAddress owner, EthereumAddress spender, {BlockNum? atBlock, EthereumAddress? sender}) Future<BigInt>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
approvalEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<Approval>
Returns a live stream of all Approval events emitted by this contract.
approve(EthereumAddress spender, BigInt amount, {required Credentials credentials, Transaction? transaction}) Future<String>
The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.
balanceOf(EthereumAddress account, {BlockNum? atBlock, EthereumAddress? sender}) Future<BigInt>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
checkSignature(ContractFunction function, String expected) bool
Returns whether the function has the expected selector.
inherited
decimals({BlockNum? atBlock, EthereumAddress? sender}) Future<BigInt>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
name({BlockNum? atBlock, EthereumAddress? sender}) Future<String>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(EthereumAddress? sender, ContractFunction function, List params, BlockNum? atBlock) Future<List>
inherited
symbol({BlockNum? atBlock, EthereumAddress? sender}) Future<String>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
toString() String
A string representation of this object.
inherited
totalSupply({BlockNum? atBlock, EthereumAddress? sender}) Future<BigInt>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
transfer(EthereumAddress recipient, BigInt amount, {required Credentials credentials, Transaction? transaction}) Future<String>
The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.
transferEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<Transfer>
Returns a live stream of all Transfer events emitted by this contract.
transferFrom(EthereumAddress sender, EthereumAddress recipient, BigInt amount, {required Credentials credentials, Transaction? transaction}) Future<String>
The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.
write(Credentials credentials, Transaction? base, ContractFunction function, List parameters) Future<String>
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited