Chain class

Represents an Ethereum-based blockchain chain.

Constructors

Chain.new({required int chainId, required String explorer, required EntryPointAddress entrypoint, EthereumAddress? accountFactory, String? jsonRpcUrl, String? bundlerUrl, String? paymasterUrl, bool testnet = false})
Creates a new instance of the Chain class.

Properties

accountFactory ↔ EthereumAddress?
The address of the AccountFactory contract on this chain.
getter/setter pair
bundlerUrl String?
The URL of the bundler service for this chain.
getter/setter pair
chainId int
The unique identifier of the chain.
final
entrypoint EntryPointAddress
The address of the EntryPoint contract on this chain.
final
explorer String
The URL of the block explorer for this chain.
final
hashCode int
The hash code for this object.
no setterinherited
jsonRpcUrl String?
The URL of the JSON-RPC endpoint for this chain.
getter/setter pair
paymasterUrl String?
The URL of the paymaster service for this chain.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
testnet bool
Specify whether it is testnet
getter/setter pair

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