Ethereum class

Inheritance
Available Extensions
Annotations
  • @JS()

Constructors

Ethereum()

Properties

autoRefreshOnNetworkChange bool
no getter
chainId String
Returns a hexadecimal string representing the current chain ID.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedAddress String?
Returns first getAccounts item but may return unexpected value.
no setter

Methods

isConnected() bool
Returns true if the provider is connected to the current chain, and false otherwise.
listenerCount([String? eventName]) int
Returns the number of listeners for the eventName events. If no eventName is provided, the total number of listeners is returned.
inherited
listeners(String eventName) List
Returns the list of Listeners for the eventName events.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAllListeners([String? eventName]) → dynamic
Remove all the listeners for the eventName events. If no eventName is provided, all events are removed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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