ERC20Contract class

Inheritance

Constructors

ERC20Contract({required String contractAddress, required EvmRpcInterface rpc})

Properties

abi ContractABI
finalinherited
contractAddress String
finalinherited
hashCode int
The hash code for this object.
no setterinherited
rpc EvmRpcInterface
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

allowance({required String owner, required String spender}) Future<BigInt>
approve({required String sender, required String spender, required BigInt value, required Uint8List seed, EvmFeeInformation<EvmGasPrice>? feeInfo}) Future<String>
approveTx({required String sender, required String spender, required BigInt value, EvmFeeInformation<EvmGasPrice>? feeInfo}) Future<RawEvmTransaction>
balanceOf({required String address}) Future<BigInt>
buildTransactionForFunction({required ContractFunctionWithValues function, required String sender, EvmFeeInformation<EvmGasPrice>? feeInfo, BigInt? value}) Future<RawEvmTransaction>
inherited
getBalance(String address, {BlockNum? atBlock}) Future<BigInt>
getDecimals() Future<int>
getName() Future<String>
getSupply() Future<BigInt>
getSymbol() Future<String>
interact({required ContractFunctionWithValues function, required Uint8List seed, required String sender, EvmFeeInformation<EvmGasPrice>? feeInfo, BigInt? value, List<AccessListItem>? accessList}) Future<String>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read({required ExternalContractFunctionWithValues function, BlockNum? atBlock, required List<FunctionParam>? outputs, StateMutability? stateMutability}) Future<ExternalContractFunctionWithValuesAndOutputs>
inherited
readSafe({required LocalContractFunctionWithValues function, BlockNum? atBlock}) Future<LocalContractFunctionWithValuesAndOutputs>
inherited
toString() String
A string representation of this object.
inherited
transfer({required String sender, required String to, required BigInt value, required Uint8List seed, EvmFeeInformation<EvmGasPrice>? feeInfo, List<AccessListItem>? accessList}) Future<String>

Operators

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