UserOperation class

Implemented types

Constructors

UserOperation({required EthereumAddress sender, required BigInt nonce, required String initCode, required String callData, required BigInt callGasLimit, required BigInt verificationGasLimit, required BigInt preVerificationGas, required BigInt maxFeePerGas, required BigInt maxPriorityFeePerGas, required String signature, required String paymasterAndData})
UserOperation.fromJson(String source)
factory
UserOperation.fromMap(Map<String, dynamic> map)
factory
UserOperation.partial({required String callData, EthereumAddress? sender, BigInt? nonce, String? initCode, BigInt? callGasLimit, BigInt? verificationGasLimit, BigInt? preVerificationGas, BigInt? maxFeePerGas, BigInt? maxPriorityFeePerGas})
factory
UserOperation.update(Map<String, dynamic> map, UserOperationGas opGas, {EthereumAddress? sender, BigInt? nonce, String? initCode})
factory

Properties

callData String
final
callGasLimit BigInt
final
hashCode int
The hash code for this object.
read-onlyinherited
initCode String
final
maxFeePerGas BigInt
read / writeoverride-getter
maxPriorityFeePerGas BigInt
read / writeoverride-getter
nonce BigInt
final
paymasterAndData String
read / writeoverride-getter
preVerificationGas BigInt
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
sender EthereumAddress
final
signature String
read / writeoverride-getter
verificationGasLimit BigInt
final

Methods

hash(Chain chain) Uint8List
Creates a combined hash code for a number of objects.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Converts the user operation to a JSON-encoded string.
override
toMap() Map<String, dynamic>
Converts the user operation to a map.
override
toString() String
A string representation of this object.
inherited

Operators

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