-
Notifications
You must be signed in to change notification settings - Fork 681
Add txpool
methods to RPC
#763
Comments
This is something I ran into with my own project (I need |
No one else has asked for it, as far as I know. So it hasn't been prioritized. There are other issues ahead of this, like getting Ganache v7 to a stable release. After that we can evaluate adding these methods. Please feel free to work this issue if you don't want to wait for us. Here is where our tx pool transactions are held: ganache/src/chains/ethereum/ethereum/src/transaction-pool.ts Lines 102 to 106 in 434d971
#origins would need to be changed to readonly public origins .
You just need to add the RPC methods you need to api.ts and that would make it available over RPC. You'd build the tx pool content by accessing the transaction pool like this:
You can get the json RPC representation of each transaction by calling |
Thanks for the pointers, they seem very helpful! |
Adding below methods would be straight forward now that we have txpool_content present. Should I start working on this (if anyone isn't)? Also, if yes, single PR for all or one for each? |
Also, #1539 (comment) |
@amandesai01 Go for it! Regarding that comment about the |
It's your call, whatever you prefer! |
https://geth.ethereum.org/docs/rpc/ns-txpool
The text was updated successfully, but these errors were encountered: