Ethereum class

The Ethereum JSON-RPC client class. Further details of this interface and its Dapp API specification can be found at https://github.com/ethereum/wiki/wiki/JSON-RPC#web3_clientversion. The API calls return null if an ethereum error occurred.

Implementers

Constructors

Ethereum(EthereumINetworkAdapter _networkAdapter)
Default constructor
Ethereum.withConnectionParameters(EthereumINetworkAdapter adapter, String hostname, String scheme, [int? port = defaultHttpPort])
With connection parameters

Properties

admin EthereumApiAdmin?
The Admin API
no setter
eth EthereumApiEth?
The ETH API
no setter
hashCode int
The hash code for this object.
no setterinherited
host String?
Host
getter/setter pair
httpAdapter EthereumINetworkAdapter
HTTP Adapter
no getter
id int
Transmission id
getter/setter pair
lastError EthereumError
Last error
getter/setter pair
port int
Connection parameters Port
getter/setter pair
printError bool
Print errors, default is off
getter/setter pair
rpcClient EthereumRpcClient
Json RPC client
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri Uri?
Uri
no setter

Methods

connectParameters(String scheme, String? hostname, [int? port]) → void
Connect by explicitly setting the connection parameters. Scheme must be either rpcScheme or rpcWsScheme
connectString(String? hostname) → void
Connection methods / Connect using a host string of the form http://thehost.com:1234, port is optional. Scheme must be http or ws
connectUri(Uri? uri) → void
Connect using a URI, port is optional
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processError(String method, Map<String, dynamic> res) → void
Error processing helper
toString() String
A string representation of this object.
inherited

Operators

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

Constants

defaultHttpPort → const int
Defaults HTTP port
defaultWsPort → const int
Web socket port
rpcHttpScheme → const String
Constants HTTP scheme
rpcWsScheme → const String
Web socket scheme