AbiDecoder class

ABI decoder for Ethereum smart contract function calls

Constructors

AbiDecoder.fromABI(List abiJson)
Create ABI decoder from contract ABI JSON

Properties

functions → Map<String, String>
Get all available functions
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signatures → Map<String, String>
Get all function signatures
no setter

Methods

decodeParameters(String hexData) → Map<String, dynamic>?
Decode function parameters from transaction data
getFunctionName(String hexData) → String?
Get function name from transaction data
getFunctionSignature(String hexData) → String?
Get function signature from transaction data
hasFunction(String selector) → bool
Check if function selector exists in ABI
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

compute4BytesSignature(String functionSignature) → String
Compute 4-byte function selector from signature