There are several useful txpool queries in geth: txpool_content
, txpool_inspect
and txpool_status
. Since these are not part of the general standard, Parity likely has some other name for the same mechanism.
Ideally, I would get a list of transaction details or hashes that are pending for a supplied account. Although, geth doesn't have an option to filter the results by account, as far as I can tell.
Best Answer
The closest I was able to find is
parity_pendingTransactions
andparity_pendingTransactionsStats
.parity_pendingTransactions
is very similar to geth'stxpool_content
, and gets the job done.Update: Since I was specifically looking for transactions sent from a specific account, this new method works even better:
parity_localTransactions
It only returns the locally-generated transactions. Note that it also lists mined transactions sent locally, so if you only want pending transactions, you'll have to filter them out afterward, using the status field. An example query/response: