Questions tagged [nonce]

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.

Filter by
Sorted by
Tagged with
0
votes
1answer
6 views

How do I get the PoW nonce of a specific block in solidity?

This question doesn't have an answer that shows how to get the PoW nonce for a specific block internally from within Solidity. From my understanding in Ethereum nonce is used for an account's tx ...
2
votes
1answer
432 views

Ethereum transaction sent from Ledger Nano X stuck because too low tranasction fee used

My ETH are STUCK. 48 hours ago i sent 31 ETH from my Ledger Nano X to my Coinbase account, but i choose the slowest and cheapest method that was diplayed into my ledger ( I don't remember how much gas ...
0
votes
0answers
17 views

Pending transactions remain pending forever?

I have a pending transaction stucked for more than 24 hours. I have receive advice on how to cancel it already so please do not answer me that advice again. Because it hasn't worked for me. Now my ...
0
votes
0answers
20 views

Why is eth_getTransactionCount nonce incorrect under load?

I'm calling eth_getTransactionCount via JSON RPC, and taking that value and trying to use it as nonce for a RawTransaction to send ETH. I'm running this against a ganache server. This happens in a ...
0
votes
0answers
12 views

Increment transaction count by more than one

With every transaction, the transaction count of an Ethereum address is incremented by one. Is there a way to increment it by a larger number in one step, for example going from 1 to 100 with a single ...
2
votes
2answers
265 views

How does NONCE prevent a replay attack in case of knowing NONCE value?

I have a question about a nonce in the Ethereum network. I understand that a nonce helps to prevent a replay attack, but there is one particular part that I don't understand. I have applied my ...
1
vote
1answer
31 views

Ethereum transaction order, nonce, and miner confirmation. Can someone clear it?

I have question that has been bugging me for a while. It's about first order and nonce. First of all when i send multiple transaction in meta mask, they should confirm in sequence if i do not change ...
2
votes
2answers
220 views

I keep getting nonce is too low when using truffle to call functions on contracts even though this works fine on remix.How can I fix this

I keep getting the nonce is too low when running functions with sub transactions on the kovan test net is there a way I can stop this from happening?these sub transactions are making transactions with ...
0
votes
1answer
2k views

How does metamask manage the multiple transaction with same address?

I'm struggling to implement the functionality which sends multiple transactions using the same address. here the from address is same but the to addresses are different. When I did research on this, I ...
0
votes
1answer
732 views

Error encountered during contract execution [Out of gas]?

i have this address 0xb5f82127b5067f1019abd362ba812c0ef8196717 as you can see i have 3 transaction failed with this error : Warning! Error encountered during contract execution [Out of gas]. I was ...
36
votes
4answers
19k views

What happens when a transaction nonce is too high?

From Design Rationale: One weakness of the account paradigm is that in order to prevent replay attacks, every transaction must have a "nonce", such that the account keeps track of the nonces used ...
0
votes
1answer
215 views

BlockCypher Account nonce too far behind transaction

I'm currently working on a DApp that involves sending transactions. I'm using BlockCypher to send the transactions since the API is fairly straight forward. One issue I'm finding is that when I run my ...
1
vote
1answer
502 views

Why is there a nonce and mixHash value in the genesis file?

I may not fully understand the genesis file. Why is there a nonce and mixHash value in the file if nothing is being mined? It was my impression the genesis file is used to bootstrap block 0, then ...
0
votes
1answer
30 views

Infura out of sync

I have 13 transactions according to https://ropsten.etherscan.io/address/[my_account] and when I dispatch "eth_getTransactionCount" to https://ropsten.infura.io/v3/[my_project_id] (with &...
0
votes
1answer
195 views

Transaction Pending and Dropped

I have a transaction pending from 4 days. I have tried to unlock following this answer: MyEtherWallet is pending and dropping. It looks like it is stuck in a loop for 2 days? Now the current nonce is ...
4
votes
1answer
28k views

Transaction stuck because of low gas price

i accidentally put the lowest gas price possible when i am about to send my eth.. is there any way to cancel / re-make my transaction?? i have read some articles telling that i should out-gassed my ...
2
votes
0answers
30 views

Why is the EVM designed to have "private variables"?

In EVM, one contract is able to read code and balance of any addresses. However, storage and nonce of other addresses is not accessible. Since all states are public on the blockchain, why is EVM ...
0
votes
1answer
30 views

How to correctly set nonce?

on an account with no transaction set yet, using getTransactionCount will return 0. Should I specify the first transaction with nonce 0 or 1? and on the next transactions after the above is mined, ...
0
votes
0answers
18 views

Nonce error after transaction that took 17 hours

A couple of days ago I sent an ERC20 token transaction that confirmed after 17 hours. It didnt fail however the nonce of that transaction was 5. So my next transaction should have the nonce of 6 but ...
0
votes
1answer
218 views

Is there a way to manually set your transaction's position in a block?

I've seen some action on a coin I was monitoring on BSC using poocoin (similar to dextools but for bsc - it shows buys and sells). Whenever there was a big buy/big sell on this coin, there would be an ...
0
votes
1answer
47 views

Metamask retrieve next transaction nonce

I am testing a smart contract that requires a nonce for every single method I invoke. My idea was to use the Metasmask transaction nonce of the connected account, but I do not know how to extract the ...
0
votes
2answers
19 views

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. ...
0
votes
0answers
55 views

Does pending account nonce affect truffle contract deployments?

I have pending transactions with nonce 0,1,2,3. I am deploying a contract with truffle-cli, with relatively low gas, but enough for it to deploy, successsfully passes truffle's gas checks. But it just ...
0
votes
0answers
13 views

Bypass pending contracts in contract deployment?

I have 1 contract pending, and 1 contract queued for deployment due to low gas fees. I wish to deploy a 3rd contract that will bypass these two. The first contract has nonce 0. Sufficient gas fees ...
5
votes
2answers
188 views

After a suicide operation, is contract’s nonce reset to 0?

Simple question, but I couldn’t find the answer in the yellow paper. Is it reset to 0 or is it kept at the latest value before destruction ?
0
votes
1answer
255 views

'Transaction nonce is too low. Try incrementing the nonce.' while following truffle tutorial

I ran into a nonce error on the last leg of this tutorial : https://www.trufflesuite.com/boxes/flashloan-box I also supplemented the tutorial with this video on yt(fyi b/c some of the code comes from ...
1
vote
2answers
2k views

error: replacement transaction underpriced - Nonce increment? how? Atomic transaction?

trying to send 2 transactions through infura to ropsten smart contract, but got the error: "replacement transaction underpriced". For my understanding its a Nonce increment problem...tried ...
1
vote
1answer
32 views

Seeking clarification on transaction nonce vs. block validation nonce

Apologies if this question is basic. I seek clarification regarding the following paragraph in the ETH design rationale: One weakness of the account paradigm is that in order to prevent replay ...
1
vote
1answer
27 views

Do Data and Nonce both play a role in hash?

If a transaction's hash doesn't change with data it makes blockchain mutable.
2
votes
1answer
502 views

Is there "auto-drop" or "auto-cancel" for a transaction that's not been processed for a long time?

I sent a transaction with relatively low gas and during several days it was pending. Eventually I managed to have it to get through by increasing a gas fee. Other time I send a transaction with a low ...
1
vote
1answer
40 views

nonce in World State

Is the nonce stored in the Ethereum world state explicitly? Acco. to the yellow paper it does. But in "Mastering Ethereum", Andreas writes - However, the nonce is not stored explicitly as ...
4
votes
4answers
1k views

send raw transaction without knowing nonce

I want to send raw transactions but I don't want to accidentally overwrite any transactions. Afaik when using eth.sendTransaction it automatically increments the nonce and doesn't overwrite any ...
0
votes
2answers
305 views

Can using getTransactionCount() + 1 prevent waiting for pending transactions?

I tested sending multiple transactions with a low time gap, and I knew that they will wait for previous transactions to be confirmed. I did not use Nonce in the transaction code as it is optional. But ...
34
votes
3answers
6k views

Concurrency patterns for account nonce

The account nonce is the only element in the transaction structure that prevents replay attack (as explained in this very good answer). It essentially forces sequentialisation of an account's ...
0
votes
1answer
45 views

Combined transactions executed together?

If I'm correct the nonce is responsible for the order transactions are executed. Let assume you have two transactions T1 & T2. T1 depends on T2. So I want to have an order T1 then T2. This is done ...
2
votes
3answers
356 views

how is it possible to send 5 successful, consecutive transactions at the same time?

I just witnessed something amazing that I didn't think was possible before. I was under the assumption if that you try to submit consecutive transactions, the latest transaction with the highest nonce ...
0
votes
0answers
59 views

How to fill transaction nounce gap for an EOA?

If for whatever the reason, one transaction submitted (say lost transaction with nonce N) was not mined into block. The consequence is that any transactions submitted after the lost transaction will ...
42
votes
2answers
28k views

What is nonce in Ethereum? How does it prevent double spending?

recently I got fascinated by blockchain, and started learning Ethereum. I came across the concept of the nonce in Ethereum. After researching I found out that nonce is used for two purposes. a. To ...
1
vote
1answer
36 views

What if difficulty exceeds the length of a fixed sha256 hash in proof of work?

Hello im a newbie in Blockchain, i got to know some basics, but im confused that what if the difficulty exceeds the length of a sha256 fixed length string example : The fixed length is here 64 (sha256)...
3
votes
2answers
4k views

{'message': 'Nonce too low', 'code': -32000} when sending transaction on geth JSON-RPC

I am trying to send a transaction using Go Ethereum 1.4.18-stable JSON-RPC and I am getting the following error: {'message': 'Nonce too low', 'code': -32000} This is a single transaction on ...
1
vote
1answer
2k views

Transactions stuck at pending on ropsten test net from one day

I am Writing a simple script for ERC20 token transfer method. which sign transaction offline and then submit it to network. Transfer method encoded data : var encoded = await MyContract.methods ...
0
votes
0answers
629 views

Is it required to use multiple Etherem accounts to send transactions on behalf of customers to avoid pending transactions?

We are developing an Ethereum based exchange. In our project, customers put their orders to send ETH or ERC20 tokens to others, and we currently do these transactions via our Ethereum account on their ...
0
votes
0answers
139 views

Disabling nonce check for go-ethereum for a private test net when using web3js batch requests to send tx

I am using web3js batch.add and batch.execute to send tx for an ethereum private testnet that I have created. I send tx using batch.add and batch.execute (don't prefer to use promises since they ...
0
votes
0answers
88 views

If I have several wallets with the same address, how to deal with nonces?

I access Ethereum from several wallets. Some of the addresses are present in several wallets at once. I discovered that nonces should always increase. (Right?) Then if I send transactions from several ...
1
vote
0answers
53 views

Are transactions with too high nonce propagated to other nodes from local pool by parity?

I want to understand what happens with tx when I create tx with too high nonce. It's saved in a local queue, but do other nodes get the information about this tx? I don't know, can I remove tx from ...
1
vote
0answers
20 views

Why does proof of work targeted zeros always comes at the start of hash? why is it not in the middle or the end of hash?

My question is why always targeted zeros come at the start of hash of the block? I have never seen more than 2 zeros in middle or somewhere else in the hash of mined block... What's the reason?.... ...
1
vote
1answer
46 views

What's the max number allowed as nonce? [duplicate]

I tried to generate nonce using this formula, so I can avoid 'underpriced' problem and nonce conflicts nonce: web3.utils.toHex( Math.round (Date.now() / 1000 - 1586000000) ), But simply these ...
0
votes
1answer
50 views

Is it possible to partially signed tx without nonce and then a third-party proxy will fill the right nonce?

As part of building managing nonce mechanism, we thinking about several approaches for issue tx from frontEnd without the need to wait till it mined before sending the next tx. Is it possible to ...
0
votes
2answers
115 views

Should I use getTransactionCount() result in sendTransaction()? [duplicate]

As I read, getTransactionCount() returns the number of transactions sent from an address. Which of below items should I consider? Not to use returned nonce? Use the returned nonce number as a ...
2
votes
0answers
53 views

Sending tokens out on coinpayments success payment using Web3py

I'm writing Django app and want to send out tokens using Web3 once Coinpayments sends me callback about successfull payment. The problem is that Coinpayments sends multiple callbacks at once and just ...