Skip to content

Add support for relayer EIP-7702 authorizations#355

Draft
patrislav wants to merge 1 commit intomasterfrom
eip-7702
Draft

Add support for relayer EIP-7702 authorizations#355
patrislav wants to merge 1 commit intomasterfrom
eip-7702

Conversation

@patrislav
Copy link
Copy Markdown
Member

@patrislav patrislav commented Apr 17, 2026

Usage:

signedTxns, err := w.SignTransactions(ctx, sequence.Transactions{txn})
if err != nil { /* ... */ }

authNonce, err := w.GetProvider().PendingNonceAt(ctx, w.Address())
if err != nil { /* ... */ }

auth, err := gethTypes.SignSetCode(w.privateKey, gethTypes.SetCodeAuthorization{
	ChainID: *uint256.NewInt(chainID),
	Address: common.HexToAddress(eip7702Implementation),
	Nonce:   authNonce,
})
if err != nil { /* ... */ }

signedTxns.Authorization = &auth

w.SendTransactions(ctx, signedTxns)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant