Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Add filtering capability to parity_pendingTransactions #8269

Closed
AdvancedStyle opened this issue Mar 30, 2018 · 3 comments
Closed

Add filtering capability to parity_pendingTransactions #8269

AdvancedStyle opened this issue Mar 30, 2018 · 3 comments
Labels
F8-enhancement 🎊 An additional feature request. M6-rpcapi 📣 RPC API. P7-nicetohave 🐕 Issue is worth doing eventually.
Milestone

Comments

@AdvancedStyle
Copy link

Is there a way to limit the information returned from parity_pendingTransactions over JSON RPC?

Currently it returns all transactions in mempool with full transaction data in JSON format....which takes a long time to parse.

Is it possible to get only the transaction hashes?

In my use case I'd like to be able to poll the mempool and then compare it against my previously list of mempool transactions and then only lookup the full details on the new ones (so probably lookup 5 or 10 new transactions every few seconds, as opposed to trying to pull details for 10000 transactions every time)

With only a list of transaction hashes this compare function can be performed quite quickly, but with not with parsing a massive JSON.

@tomusdrw
Copy link
Collaborator

Have you considered using eth_subscribe(newPendingTransactions)? Currently there is no way to get limited set of data, but I think it's a pretty good idea to allow that.

@5chdn 5chdn added F8-enhancement 🎊 An additional feature request. M6-rpcapi 📣 RPC API. P7-nicetohave 🐕 Issue is worth doing eventually. labels Apr 3, 2018
@5chdn 5chdn added this to the 1.13 & ... milestone Apr 3, 2018
@5chdn 5chdn modified the milestones: 1.13, 1.14 & ... Apr 24, 2018
@folsen folsen changed the title Question: parity_pendingTransactions Add filtering capability to parity_pendingTransactions May 21, 2018
@5chdn 5chdn modified the milestones: 2.2, 2.3 & ... Jul 17, 2018
@5chdn 5chdn modified the milestones: 2.3, 2.4 & ... Sep 11, 2018
@5chdn 5chdn modified the milestones: 2.4, 2.5 & ... Oct 29, 2018
@5chdn 5chdn modified the milestones: 2.5, 2.6 & ... Jan 10, 2019
@ppeinsold
Copy link

Would love to have a way of filtering here.
Use Cases:

  • Check if a transaction with given hash is still pending
  • Get all pending transactions by sender
  • Get all pending transactions by receiver

@ordian
Copy link
Collaborator

ordian commented Oct 22, 2019

closed by #10506.

@ordian ordian closed this as completed Oct 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
F8-enhancement 🎊 An additional feature request. M6-rpcapi 📣 RPC API. P7-nicetohave 🐕 Issue is worth doing eventually.
Projects
None yet
Development

No branches or pull requests

6 participants