Eip7702Common mixin
A mixin that provides shared utilities and convenience methods for EIP-7702 builders and components.
This mixin relies on the Eip7702Base interface, which supplies the shared execution context (ctx). Implementations may use this mixin to access common RPC helpers, authorization utilities, gas estimation logic, or other reusable EIP-7702 workflows.
The mixin itself does not define behavior; it serves as a shared extension point for builder implementations such as authorization constructors or typed-transaction builders.
Subclasses may document additional behaviors or override methods provided by mixins layered on top of this one.
See also:
- Eip7702Base – required context provider.
- Eip7702Context – network and configuration container.
- Superclass constraints
- Mixin applications
Properties
- ctx → Eip7702Context
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getDelegatedImpl(
EthereumAddress eoa) → Future< Uint8List?> - Reads the on-chain bytecode of an externally owned account (EOA) and extracts the delegated implementation address if the account has been upgraded via EIP-7702.
-
getFeeData(
[TransactionSpeed speed = TransactionSpeed.normal]) → Future< ({BigInt maxFeePerGas, BigInt maxPriorityFeePerGas})> -
Retrieves EIP-1559 fee parameters (
maxFeePerGasandmaxPriorityFeePerGas) from the network and returns a preset based on the requested TransactionSpeed. -
getNonce(
EthereumAddress address) → Future< BigInt> - Returns the next available transaction nonce for the given Ethereum address.
-
isDelegatedTo(
EthereumAddress eoa, EthereumAddress impl) → Future< bool> - Checks whether the given externally owned account (EOA) is currently delegated to the specified implementation address.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolveChainId(
) → Future< BigInt> - Resolves and returns the active chain ID for the current context.
-
resolveNonce(
EthereumAddress eoa, [Executor? executor, BigInt? nonceOverride]) → Future< BigInt> - Resolves the next transaction nonce for the given externally owned account (EOA).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited