web3_universal_aa library

ERC-4337 Account Abstraction support for Dart Web3 SDK.

This library provides comprehensive support for ERC-4337 Account Abstraction, including UserOperation construction, Bundler communication, Paymaster integration, and Smart Account implementations.

Classes

AggregatorStakeInfo
Aggregator stake info.
BaseSmartAccount
Base implementation of SmartAccount with common functionality.
BundlerClient
Bundler client for ERC-4337 UserOperation submission and management.
Call
Represents a function call to be executed by a smart account.
DepositInfo
Deposit info for an account.
EntryPoint
EntryPoint contract interface for ERC-4337.
EntryPointFactory
Factory for creating EntryPoint instances.
EntryPointV06
EntryPoint v0.6 implementation.
EntryPointV07
EntryPoint v0.7 implementation.
HttpPaymaster
HTTP-based paymaster that communicates with a paymaster service.
LightAccount
LightAccount implementation optimized for gas efficiency.
LightAccountFactory
Factory for creating LightAccount instances.
PackedUserOperation
Packed UserOperation for EntryPoint v0.7+
Paymaster
Abstract base class for Paymaster implementations.
PaymasterData
Paymaster data to be included in a UserOperation.
PaymasterManager
Paymaster manager that handles multiple paymaster options.
ReturnInfo
Return info from validation.
SimpleAccount
SimpleAccount implementation following the ERC-4337 reference implementation.
SimpleAccountFactory
Factory for creating SimpleAccount instances.
SmartAccount
Abstract base class for smart contract accounts.
StakeInfo
Stake info for an entity.
TokenPaymaster
ERC-20 token paymaster that accepts specific tokens as payment.
UserOperation
UserOperation data structure according to ERC-4337 specification
UserOperationByHashResult
Result from getUserOperationByHash
UserOperationGasEstimate
Gas estimation result for UserOperation
UserOperationReceipt
UserOperation receipt from bundler
UserOperationRequest
UserOperation request for building operations
UserOperationWithAggregation
UserOperation with aggregation info for handleAggregatedOps.
ValidationResult
Result from simulateValidation.
VerifyingPaymaster
Verifying paymaster that requires users to deposit tokens.

Enums

BundlerErrorCode
Bundler error codes according to ERC-4337
EntryPointVersion
Entry Point version enumeration for ERC-4337

Exceptions / Errors

BundlerException
Exception thrown by bundler operations
TimeoutException
Exception thrown when a bundler operation times out.