Interface class

The Interface Class abstracts the encoding and decoding required to interact with contracts on the Ethereum network.

Many of the standards organically evolved along side the Solidity language, which other languages have adopted to remain compatible with existing deployed contracts.

The EVM itself does not understand what the ABI is. It is simply an agreed upon set of formats to encode various types of data which each contract can expect so they can interoperate with each other.

Constructors

Interface(dynamic abi)
Create a new Interface from a JSON string or object representing abi.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
impl → _InterfaceImpl
Internal JS Object, should not be used directly.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

format([FormatTypes? types]) → dynamic
Return the formatted Interface.
formatFull() List<String>
Format into FormatTypes.full.
formatJson() String
Format into FormatTypes.json.
formatMinimal() List<String>
Format into FormatTypes.minimal.
getEventTopic(String event) String
Return the topic hash for event.
getSighash(String function) String
Return the sighash (or Function Selector) for function.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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