Fill the gap between the last transaction with the account nonce in sequence and the transaction with the account nonce not in sequence
Issue
You have a transaction not propagating to the node because the transaction's account nonce is not in sequence.
Example
Transaction from account 0x123... with account nonce 0 is propagated.
Transaction from account 0x123... with account nonce 12 is in the queued state and not propagated.
Cause
Transactions from an account are propagated to the network with the account nonce in sequence.
Example
Transaction from account 0x123... with account nonce 0 is propagated.
Transaction from account 0x123... with account nonce 1 is propagated.
Transaction from account 0x123... with account nonce 3 is not propagated until a transaction with the account 2 is created.
Solution
Fill the sequence gap by creating the transactions with the account nonce in sequence until the account nonce of a queued transaction is reached.
Here's how to fetch the transaction count for a given address:
curl -X POST https://nd-123-456-789.p2pify.com/authKey \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getTransactionCount","params":["0xYourAddress","latest"],"id":1}'
If you have any questions, feel free to contact Chainstack support by emailing support@chainstack.com or by submitting this form.
See also:
Comments
0 comments
Article is closed for comments.