EtherspotWallet class

A EtherspotWallet class that extends the UserOperationBuilder. This class provides methods for interacting with an 4337 EtherspotWallet.

Inheritance

Constructors

EtherspotWallet(EthPrivateKey credentials, String rpcUrl, {IPresetBuilderOpts? opts})

Properties

credentials EthPrivateKey
final
entryPoint ↔ EntryPoint
The EntryPoint object to interact with the ERC4337 EntryPoint contract.
latefinal
etherspotWalletFactory ↔ EtherspotWalletFactory
The factory instance to create Etherspot Wallet contracts.
latefinal
hashCode int
The hash code for this object.
no setterinherited
initCode String
The initialization code for the contract.
getter/setter pair
nonceKey BigInt
The nonce key to use the Semi-Abstract-Nonce mechanism.
getter/setter pair
proxy ↔ EtherspotWallet
The proxy instance to interact with the EtherspotWallet contract.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildOp(EthereumAddress entryPoint, BigInt chainId) Future<IUserOperation>
Builds the operation asynchronously and returns a future of it.
inherited
execute(Call call) Future<IUserOperationBuilder>
Executes a transaction on the network.
executeBatch(List<Call> calls) Future<IUserOperationBuilder>
Executes a batch transaction on the network.
getCallData() String
Gets the call data of the operation.
inherited
getCallGasLimit() BigInt
Gets the call gas limit of the operation.
inherited
getInitCode() String
Gets the init code of the operation.
inherited
getMaxFeePerGas() BigInt
Gets the max fee per gas of the operation.
inherited
getMaxPriorityFeePerGas() BigInt
Gets the max priority fee per gas of the operation.
inherited
getNonce() BigInt
Gets the nonce of the operation.
inherited
getOp() IUserOperation
Gets the constructed operation.
inherited
getPaymasterAndData() String
Gets the paymaster and associated data of the operation.
inherited
getPreVerificationGas() BigInt
Gets the pre-verification gas of the operation.
inherited
getSender() String
Gets the sender of the operation.
inherited
getSignature() String
Gets the signature of the operation.
inherited
getVerificationGasLimit() BigInt
Gets the verification gas limit of the operation.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetDefaults() IUserOperationBuilder
Resets all field values to their defaults.
inherited
resetMiddleware() IUserOperationBuilder
Resets middleware.
inherited
resetOp() IUserOperationBuilder
Resets the operation to initial state.
inherited
resolveAccount(dynamic ctx) Future<void>
Resolves the nonce and init code for the EtherspotWallet contract creation.
resolveFields(Map<String, dynamic> op) Map<String, dynamic>
inherited
setCallData(String data) IUserOperationBuilder
Sets the call data of the operation.
inherited
setCallGasLimit(BigInt gas) IUserOperationBuilder
Sets the call gas limit of the operation.
inherited
setInitCode(String code) IUserOperationBuilder
Sets the init code of the operation.
inherited
setMaxFeePerGas(BigInt val) IUserOperationBuilder
Sets the max fee per gas of the operation.
inherited
setMaxPriorityFeePerGas(BigInt fee) IUserOperationBuilder
Sets the max priority fee per gas of the operation.
inherited
setNonce(BigInt val) IUserOperationBuilder
Sets the nonce of the operation.
inherited
setPartial(Map<String, dynamic> partialOp) IUserOperationBuilder
Sets the operation partially with a map of key-value pairs.
inherited
setPaymasterAndData(String val) IUserOperationBuilder
Sets the paymaster and associated data of the operation.
inherited
setPreVerificationGas(BigInt gas) IUserOperationBuilder
Sets the pre-verification gas of the operation.
inherited
setSender(String address) IUserOperationBuilder
Sets the sender of the operation.
inherited
setSignature(String val) IUserOperationBuilder
Sets the signature of the operation.
inherited
setVerificationGasLimit(BigInt gas) IUserOperationBuilder
Sets the verification gas limit of the operation.
inherited
toString() String
A string representation of this object.
inherited
useDefaults(Map<String, dynamic> partialOp) IUserOperationBuilder
Uses default values for fields not set in partialOp.
inherited
useMiddleware(UserOperationMiddlewareFn fn) IUserOperationBuilder
Applies middleware function to the operation construction process.
inherited

Operators

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

Static Methods

init(EthPrivateKey credentials, String rpcUrl, {IPresetBuilderOpts? opts}) Future<EtherspotWallet>
Initializes a EtherspotWallet object and returns it.