A random number that is only used once. It is generated at the beginning of a communication by one communication partner and has to be sent back by the other one in order to prevent replay attacks.
Questions tagged [nonce]
182 questions
7
votes
1 answer
Does nonce increase when the transaction fail?
DOes nonce increase when the transaction fail?
TX1 nonce=0 succeed
TX2 nonce=1 failed
TX3 nonce=?
What value of nonce will TX3 have? It will be appreciated if you explain the reason why.
ikaop
- 153
- 7
4
votes
2 answers
Getting and setting the nonce for a transaction
I'm using a javascript library (etheremjs) to sign a transaction. When creating it, it asks for the nonce field. I researched about it and partially understood it. But my main problem is:
How do I actually get it? Is the nonce a lifetime…
sigmaxf
- 1,080
- 2
- 13
- 21
3
votes
2 answers
how many transactions could be included in a new block from the same account?
How many transactions could be included in the next new block from the same account? From my understanding, every transaction would have a unique nonce. This nonce of an account would be increased by 1 for every transaction? So I wonder if it can…
Eleven
- 113
- 1
- 6
2
votes
0 answers
Usage of web3 provider in multiple processes
I have web application and background queue that executes long lasting tasks. Both of them using truffle-privatekey-provider with same private key to sign/send transactions.
Now I ma experiencing issue with nonce mismatch - when background worker…
Alex G.P.
- 1,277
- 11
- 27
2
votes
1 answer
Account nonce -- Incremental, i.e., Deterministic or Arbitrary
In cryptography, a nonce is an arbitrary number that can be used just once.
But in Ethereum, the account nonce is deterministic. Deterministic vs Arbitrary -- How can both be true at the same time?
Nathan Aw
- 1,954
- 12
- 27
1
vote
1 answer
Can consecutive transactions be mined on same block?
Can consecutive transactions of same EOA (Externally Owned Account) be mined at same block as below?
TX1: nonce=0, Number_confrimed_Block=100
TX2: nonce=1, Number_confrimed_Block=100
TX3: nonce=2, Number_confrimed_Block=100
Thank you for your help:)
ikaop
- 153
- 7
1
vote
1 answer
How to check nonce include pending transactions?
I want to count nonce include pending transactions as following.
Tx1 nonce=0 succeed
Tx2 nonce=1 pending
Tx3 nonce=2 pending
Tx3 nonce=3 pending
I am using api provided by etherscan, but it just returns nonce for only confirmed transactions. How can…
ikaop
- 153
- 7
1
vote
0 answers
Nonce Too Low, try incrementing nonce | Not able to send TRX
Can someone tell me how to correct a Nonce Too Low issue?
I'm trying to send an ERC 20 TRX tokens that I have stored on my nano s ETC wallet and I'm not able to due to this low nonce.
FYI I have no idea what this Low Nonce means. Please help! …
Jeremy Booze
- 11
- 2
0
votes
3 answers
What happens with nonce if address have nonempty code and someone submits transaction from that address?
Ethereum Yellow Paper states:
nonce: A scalar value equal to the number of transactions sent from this address or, in the case of accounts with associated code, the number of contract-creations made by this account. For account of address…
Iva Kam
- 123
- 3
0
votes
1 answer
How to create a transaction with same nonce?
How do I create a new transaction that has the same nonce as a previous transaction?
I sent a txn with 4Gwei gas price and I want to cancel it by sending a 0 Eth txn with the same nonce.
I am running geth 1.7.1.
Adam
- 1
- 1
- 2
0
votes
1 answer
How to get current nonce that I need to send along with a transaction?
I wish you send nonce with every transaction so that I can store my nonce in DB and can override a specific transaction if it is pending for a while.
I know I can use eth.getTransactionCount("accountAddress"); to get the number of transactions sent…
Prashant Prabhakar Singh
- 8,026
- 5
- 40
- 79
0
votes
2 answers
Which transaction will go 1st
I was wondering, If I have created two transactions in Ethereum
1st one with x nonce and gas fee 5 gwei.
2nd one with x+1 nonce (as it is automatically assigned by metamask) but with a gas fee 6 gwei.
Current Gas fee is 8 Gwei , When the network…
CaptPython
- 340
- 3
- 13