Eip7702Context class
Holds the shared configuration and network environment used by all EIP-7702 builders, transaction utilities, and signing workflows.
An Eip7702Context encapsulates:
- delegateAddress — the implementation contract that externally owned accounts (EOAs) will delegate to via EIP-7702.
- web3Client — the active
Web3Clientinstance for RPC access. - chainId — the connected network’s chain ID, cached for reuse.
- transformer - useful for overriding the estimated gas
This context is typically supplied to builders such as
AuthorizationBuilder and SetCodeTxBuilder via Eip7702Base, and
ensures that all operations share consistent network and configuration
state.
Creating a context
Most applications should use the create7702Context factory, which creates a Web3Client internally:
final ctx = create7702Context(
rpcUrl: 'https://rpc.example.com',
delegateAddress: '0x1234...',
);
Constructors
- Eip7702Context({required EthereumAddress delegateAddress, required Web3Client web3Client, BigInt? chainId, GasTransformFn? transformer})
Properties
- chainId ↔ BigInt?
-
getter/setter pair
- delegateAddress → EthereumAddress
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transformer ↔ GasTransformFn?
-
getter/setter pair
- web3Client → Web3Client
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited