Client class
A Client class for interacting with an ERC-4337 bundler.
The Client
class provides methods for building and sending user operations to the ERC-4337 bundler.
The class includes methods for both real and simulated (dry-run) operation sending.
- Implemented types
Constructors
- Client(String rpcUrl, {IClientOpts? opts})
-
Constructor for
Client
.
Properties
- chainId ↔ BigInt
-
getter/setter pair
- entryPoint ↔ EntryPoint
-
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- waitIntervalMs ↔ int
-
getter/setter pair
- waitTimeoutMs ↔ int
-
getter/setter pair
- web3client → Web3Client
-
final
Methods
-
buildUserOperation(
IUserOperationBuilder builder) → Future< IUserOperation> -
Builds a user operation.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendUserOperation(
IUserOperationBuilder builder, {ISendUserOperationOpts? opts}) → Future< ISendUserOperationResponse> -
Sends a user operation.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
init(
String rpcUrl, {IClientOpts? opts}) → Future< IClient> -
Static initializer for
Client
.