Skip to content

Commit 3795b42

Browse files
ryanschneiderfjl
andauthored
eth: EIP-7702-compatible summary for eth_getTransactionCount. (#571)
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 <[email protected]>
1 parent cc96920 commit 3795b42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/eth/state.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
name: Value
5858
value: '0x0000000000000000000000000000000000000000000000000000000000000000'
5959
- name: eth_getTransactionCount
60-
summary: Returns the number of transactions sent from an address.
60+
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.
6161
params:
6262
- name: Address
6363
required: true
@@ -68,7 +68,7 @@
6868
schema:
6969
$ref: '#/components/schemas/BlockNumberOrTagOrHash'
7070
result:
71-
name: Transaction count
71+
name: Account nonce
7272
schema:
7373
$ref: '#/components/schemas/uint'
7474
examples:

0 commit comments

Comments
 (0)