IUserOperationBuilder class abstract

An abstract class representing a builder for a IUserOperation.

IUserOperationBuilder provides a flexible way to construct a IUserOperation that can be passed to the client.

Implementers

Constructors

IUserOperationBuilder()

Properties

hashCode int
The hash code for this object.
no setterinherited
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.
getCallData() String
Gets the call data of the operation.
getCallGasLimit() BigInt
Gets the call gas limit of the operation.
getInitCode() String
Gets the init code of the operation.
getMaxFeePerGas() BigInt
Gets the max fee per gas of the operation.
getMaxPriorityFeePerGas() BigInt
Gets the max priority fee per gas of the operation.
getNonce() BigInt
Gets the nonce of the operation.
getOp() IUserOperation
Gets the constructed operation.
getPaymasterAndData() String
Gets the paymaster and associated data of the operation.
getPreVerificationGas() BigInt
Gets the pre-verification gas of the operation.
getSender() String
Gets the sender of the operation.
getSignature() String
Gets the signature of the operation.
getVerificationGasLimit() BigInt
Gets the verification gas limit of the operation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetDefaults() IUserOperationBuilder
Resets all field values to their defaults.
resetMiddleware() IUserOperationBuilder
Resets middleware.
resetOp() IUserOperationBuilder
Resets the operation to initial state.
setCallData(String data) IUserOperationBuilder
Sets the call data of the operation.
setCallGasLimit(BigInt gas) IUserOperationBuilder
Sets the call gas limit of the operation.
setInitCode(String code) IUserOperationBuilder
Sets the init code of the operation.
setMaxFeePerGas(BigInt fee) IUserOperationBuilder
Sets the max fee per gas of the operation.
setMaxPriorityFeePerGas(BigInt fee) IUserOperationBuilder
Sets the max priority fee per gas of the operation.
setNonce(BigInt nonce) IUserOperationBuilder
Sets the nonce of the operation.
setPartial(Map<String, dynamic> partialOp) IUserOperationBuilder
Sets the operation partially with a map of key-value pairs.
setPaymasterAndData(String data) IUserOperationBuilder
Sets the paymaster and associated data of the operation.
setPreVerificationGas(BigInt gas) IUserOperationBuilder
Sets the pre-verification gas of the operation.
setSender(String address) IUserOperationBuilder
Sets the sender of the operation.
setSignature(String bytes) IUserOperationBuilder
Sets the signature of the operation.
setVerificationGasLimit(BigInt gas) IUserOperationBuilder
Sets the verification gas limit of the operation.
toString() String
A string representation of this object.
inherited
useDefaults(Map<String, dynamic> partialOp) IUserOperationBuilder
Uses default values for fields not set in partialOp.
useMiddleware(UserOperationMiddlewareFn fn) IUserOperationBuilder
Applies middleware function to the operation construction process.

Operators

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