Skip to content

eth: add spec and rpctestgen tests for eth_getTransactionBySenderAndNonce#771

Draft
MysticRyuujin wants to merge 1 commit intoethereum:mainfrom
MysticRyuujin:TransactionBySenderAndNonce
Draft

eth: add spec and rpctestgen tests for eth_getTransactionBySenderAndNonce#771
MysticRyuujin wants to merge 1 commit intoethereum:mainfrom
MysticRyuujin:TransactionBySenderAndNonce

Conversation

@MysticRyuujin
Copy link
Copy Markdown
Contributor

@MysticRyuujin MysticRyuujin commented Mar 12, 2026

Fixes #494.

Adds the OpenRPC method definition and rpctestgen test generators for eth_getTransactionBySenderAndNonce.

Spec

  • Parameters: sender address + nonce (hex quantity)
  • Returns: full transaction object or null
  • Documents that implementations SHOULD search the pending txpool first; pending transactions are returned with null blockHash, blockNumber, blockTimestamp, and transactionIndex

Tests

  • get-legacy-tx — lookup a mined legacy transaction by sender+nonce
  • get-dynamic-fee-tx — lookup a mined EIP-1559 transaction by sender+nonce
  • get-tx-in-pool — submit a transaction then look it up from the pending pool
  • get-notfound — returns null for an address with no transactions

Test fixtures will be generated once geth implements the method (go-ethereum: ethereum/go-ethereum#33854).

…once

Adds the OpenRPC method definition and test generators for
eth_getTransactionBySenderAndNonce, fixing ethereum#494.

The method searches the pending txpool before consulting historical chain
data. Pending transactions are returned with null block-contextual fields.

go-ethereum implementation: ethereum/go-ethereum#33854
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.

JSON-RPC edge-cases, nonce management and eth_getTransactionBySenderAndNonce

1 participant