In GraphQL endpoints, Account
’s transactionCount
doesn’t take the pending status into account
#24436
Labels
Account
’s transactionCount
doesn’t take the pending status into account
#24436
I tried to use GraphQL exclusively to get the nonces for some address, taking the “pending” status into account (i.e. do the GraphQL analog of
eth.getTransactionCount(ADDRESS, 'pending')
), but seems like currently it is impossible.System information
Geth version: 1.10.16
OS & Version: Linux
Commit hash : release
Expected behaviour
Using regular CLI, I found some addresses with pending transactions:
I queried them as
(... and other addresses)
I expected to have the results like:
Actual behaviour
Similar behavior was observed not with just this address, but with any other addresses found in pending pool as transaction originators (e.g. 0xffeBaF265d6653C40e635F5C7891089dC4C8E9bE, 0x017213b1fc02caEc42369C954AAdD4106007B522 mentioned above).
Steps to reproduce the behaviour
Using
txpool.content.pending
, find some address with pending transactions (preferrably being pending for quite a long already – can be seen in Etherscan).Insert them in GraphQL query like
, execute query.
...
Also, I had some other interesting observation. Deeper in
pending
endpoint, we have transactions; which, in their turn, have theAccount
fields as well. And these account-in-transactions-in-pending should be referring to “pending” status of account, right? No they don’t.Ran the following query:
And here is what I’ve got (cutting out the irrelevant transactions):
It finds a transaction in pending pool; and shows the transactionCount
0x2e
no matter that the nonce in the same transaction is0x2e
too.The text was updated successfully, but these errors were encountered: