ContractsHelper class
A utility class providing methods to interact with contracts.
ContractsHelper
simplifies tasks such as reading from a contract,
encoding data for contract calls, and signing off-chain transactions.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
encodedDataForContractCall(
String contractName, String contractAddress, String functionName, List params, {String? jsonInterface, bool include0x = false, int? forcePadLength, bool padToEvenLength = false}) → Uint8List - Encodes data for a contract call using the specified function and parameters.
-
readFromContract(
Web3Client client, String contractName, String contractAddress, String functionName, List params, {String? jsonInterface}) → Future< List> - Reads data from a deployed contract using the specified function and parameters.