Skip to content

Commit

Permalink
eth: EIP-7702-compatible summary for eth_getTransactionCount. (#571)
Browse files Browse the repository at this point in the history
With EIP-7702 the nonce of an account can be bumped w/o the account sending a transaction. However most (all?) EL clients handle this RPC by returning the account's nonce, which is probably the desired behavior post-7702 anyways.

---------

Co-authored-by: Felix Lange <fjl@twurst.com>
  • Loading branch information
ryanschneider and fjl authored Dec 18, 2024
1 parent cc96920 commit 3795b42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eth/state.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
name: Value
value: '0x0000000000000000000000000000000000000000000000000000000000000000'
- name: eth_getTransactionCount
summary: Returns the number of transactions sent from an address.
summary: Returns the nonce of an account in the state. NOTE: The name eth_getTransactionCount reflects the historical fact that an account's nonce and sent transaction count were the same. After the Pectra fork, with the inclusion of EIP-7702, this is no longer true.
params:
- name: Address
required: true
Expand All @@ -68,7 +68,7 @@
schema:
$ref: '#/components/schemas/BlockNumberOrTagOrHash'
result:
name: Transaction count
name: Account nonce
schema:
$ref: '#/components/schemas/uint'
examples:
Expand Down

0 comments on commit 3795b42

Please sign in to comment.