Skip to content

feat: implement eth_getTransactionCount endpoint#339

Merged
avilagaston9 merged 7 commits into
mainfrom
get-nonce
Sep 6, 2024
Merged

feat: implement eth_getTransactionCount endpoint#339
avilagaston9 merged 7 commits into
mainfrom
get-nonce

Conversation

@avilagaston9

Copy link
Copy Markdown
Contributor

Implements eth_getTransactionCount endpoint:

  • Returns the nonce of an address at a specific Block.

Observations

This PR only responds to request where the specified block is the latest. Otherwise, an error is returned.
This is because we are not handling historical data yet.

Closes #335

@avilagaston9 avilagaston9 marked this pull request as ready for review September 6, 2024 15:22
@avilagaston9 avilagaston9 requested a review from a team as a code owner September 6, 2024 15:22
Comment thread .github/workflows/hive.yaml Outdated
include:
- simulation: rpc-compat
run_command: just run-hive ethereum/rpc-compat "/eth_chainId|eth_getTransactionByBlockHashAndIndex|eth_getTransactionByBlockNumberAndIndex|eth_getCode|eth_getStorageAt|eth_call|eth_getTransactionByHash|eth_getBlockByHash|eth_getBlockByNumber|eth_createAccessList|eth_getBlockTransactionCountByNumber|eth_getBlockTransactionCountByHash|eth_getBlockReceipts|eth_getTransactionReceipt|eth_blobGasPrice"
run_command: just run-hive ethereum/rpc-compat "/eth_chainId|eth_getTransactionByBlockHashAndIndex|eth_getTransactionByBlockNumberAndIndex|eth_getCode|eth_getStorageAt|eth_call|eth_getTransactionByHash|eth_getBlockByHash|eth_getBlockByNumber|eth_createAccessList|eth_getBlockTransactionCountByNumber|eth_getBlockTransactionCountByHash|eth_getBlockReceipts|eth_getTransactionReceipt|eth_blobGasPrice|ethGetTransactionCount"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure! I have also updated other endpoints

@avilagaston9 avilagaston9 added this pull request to the merge queue Sep 6, 2024
Merged via the queue into main with commit 5c79192 Sep 6, 2024
@avilagaston9 avilagaston9 deleted the get-nonce branch September 6, 2024 15:47
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.

Hive Testing: eth_getTransactionCount

2 participants