Skip to content

EIP-7702 authorization nonce logic #3734

Answered by jxom
ArielGueta asked this question in Question
Discussion options

You must be logged in to vote

Why does viem increment the nonce by 1 only when the signer is also the broadcaster? Why is the behavior different when another account broadcasts the transaction?

In the case if Alice is the authorizor and the executor: The transaction will consume a nonce (alice:n), and then, the authorization will check against nonce of Alice (alice:n+1).
In the case if Alice is the authorizer, and Bob is the executor: The transaction will consume a nonce (bob:n), and then, the authorization will check against nonce of Alice (alice:n)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ArielGueta
Comment options

@jxom
Comment options

jxom Jun 13, 2025
Maintainer

@ArielGueta
Comment options

@ArielGueta
Comment options

Answer selected by ArielGueta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants