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
1 answer
11 views

Nonce update for multiple CREATEs in a single transaction when some fail

Suppose executing the bytecode of a smart contract in a particular (single) transaction leads to several CREATE's in a row (triggered by the same smart contract). Is it true that the nonce of that ...
user avatar
0 votes
0 answers
5 views

What value does brownie hash for an empty contract?

I am trying to pinpoint what exactly is getting hashed when deploying a contract with no functions or any explicitly defined constructor. My contract is Hash.sol: pragma solidity ^0.8.0; contract ...
user avatar
0 votes
0 answers
16 views

How to estimate the transaction size of a Blockchain (Ethereum) from the given data?

The following is the data given for different blocks; The 'size' column here refers to the block size. The aim is to estimate the transaction size for each block and compare that with the block size. ...
user avatar
0 votes
1 answer
20 views

How long before transaction is removed from the Mempool

So I have a transaction T1 that has been stuck in pending because I put the gas really low. I forgot about this and then tried to process two transactions after with $126 gas fee and $111 gas fee. I ...
user avatar
0 votes
1 answer
30 views

What is mining puzzle used in Ethereum?

In case of Bitcoin we know that puzzle used is generating a nonce such that there is a fix number of Zeros in the hash. While in case of Ethereum blocks we couldn't find any similarity can someone put ...
user avatar
  • 21
0 votes
0 answers
11 views

I have sent NFTs via Transaction builder but they have not shown up in the designated wallets - how can I resolve this?

My Gnosis wallet address is: 0x90a1545DA438b73762F8aBc15634289192b4C8AD Nonce 69 to 75 was me trying to send NFTs in small batches. Nonce 69 & 70 worked fine but using the same process 71 to 75 ...
user avatar
  • 1
0 votes
1 answer
320 views

Hardhat + Waffle + Hardhat: Nonce has already been used

This week at a talking by our friend Patrick Collins during the Chainlink Spring 2022 Hackathon schedule, I took knowledge of the possibility of moving ahead of time on the blockchain during tests: ...
user avatar
  • 43
0 votes
2 answers
71 views

How can I configure Index position of Transaction in the block?

How can I configure Index position of Transaction in the block? web3.py
user avatar
0 votes
0 answers
20 views

Confusion about Nonce in use

I am a newbie developer and would like to ask a question about Nonce in ETH. This problem has confused me for a long time, and the situation I describe below. There are two cases for this question. If ...
user avatar
0 votes
0 answers
21 views

Concurrent send of transaction from single address

I am trying to figure out what the throughput is of sending multiple streams of transactions from a single wallet address. Assuming that that nonce management is properly configured how many ...
user avatar
1 vote
1 answer
90 views

Sending hundreds of transactions every minute, TXs seem to get randomly stuck in mempool even after setting high gas

I'm building an application that needs to send hundreds of transactions every minute (consistently for hours & even days) to the Polygon blockchain. To achieve this I'm setting unique (and +1 ...
user avatar
0 votes
1 answer
19 views

HashMap based nonce for Gnosis-safe MetaTx's?

I am using infura's ITX service to handle message delivery, as it is a hard problem. One thing about ITX is that it doesn't guarantee message order, which is understandable (as that would be hard).... ...
user avatar
1 vote
1 answer
520 views

NONCE_EXPIRED error with ethers.js on local hardhat node

I'm trying to call multiple (3) times this Solidity function function mint(address to, uint256 id) public onlyOwner { ERC1155._mint(to, id, 1, ""); } from this TS code contract = ...
user avatar
  • 11
2 votes
2 answers
706 views

Error "replacement transaction underpriced" using Nonce method of cancelling transaction

I have a pending transaction that is not going through because of low gas price. I tried sending a new transaction with the same 57 nonce (https://etherscan.io/tx/...
user avatar
1 vote
0 answers
40 views

Unable to clear pending transaction on current Nonce by increasing fees

I have a pending transaction from 1 week ago, I tried every step to clear it that I can find online. I know which nonce it is, and I doubled and tripled the gas limit and fees, but it still won't ...
user avatar
0 votes
0 answers
12 views

How is the NONCE determined? [duplicate]

In reading thisthe claim is made that a NONCE is Global Monotonically increasing. But when I browse 2 sequential blocks, I see the nonces are radically different: Block 13999939 Block 13999940 I ...
user avatar
0 votes
0 answers
60 views

What would cause a pending Ethereum tx to not show up on Etherscan?

I am using the Web3 2.0 library to call web3.eth.sendTransaction and send Ether from one address to another. When I check the nonce of my wallet in my program using the following web3 functions, it ...
user avatar
1 vote
1 answer
27 views

Correlation between order of txs in the same block and nonce

I found position index referring the order of txs within a block. Txs are executed in order from position 1 to the end. Is there any correlation btw the position(order of txs) and the nonce of txs? ...
user avatar
  • 137
0 votes
1 answer
23 views

Does tx run in the order of being included in the block?

When the block is executed, Should the order of txs included in the block be the same as the order of the nonce? Or can it be different? For example, when trying to run three txs (nonce is 1, 2, 3) ...
user avatar
  • 137
0 votes
1 answer
36 views

whether nonce increases if tx is invalid due to invalid sig

I am wondering that whether nonce increases if tx is invalid due to invalid sig. Based on what I know, the nonce increases even though tx is invalid regarding of the reason of failure. right? If so, ...
user avatar
  • 137
1 vote
0 answers
113 views

Gnosis safe without safe nonce

Is there any way of creating a Gnosis safe without using "safe nonces" ? I would like to automate certain transactions from a pool of already signed transactions but don't know the order.
user avatar
0 votes
1 answer
83 views

rlp: non-canonical integer (leading zero bytes) for uint64, decoding into (types.LegacyTx).Nonce

I have written a program to send raw transactions via JSON-RPC. It seems to work for existing wallets, but I get this error when I try to send the very first transaction of a new wallet (nonce is zero)...
user avatar
  • 1
0 votes
1 answer
62 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 ...
user avatar
  • 230
0 votes
0 answers
54 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 ...
user avatar
1 vote
1 answer
182 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 ...
user avatar
0 votes
0 answers
30 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 ...
user avatar
  • 36
1 vote
1 answer
244 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 ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
  • 1
0 votes
1 answer
47 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 &...
user avatar
2 votes
0 answers
71 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 ...
user avatar
  • 121
0 votes
1 answer
64 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, ...
user avatar
0 votes
0 answers
24 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 ...
user avatar
3 votes
4 answers
784 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 ...
user avatar
1 vote
1 answer
567 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 ...
user avatar
0 votes
1 answer
185 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 ...
user avatar
0 votes
2 answers
24 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. ...
user avatar
0 votes
1 answer
542 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 ...
user avatar
  • 21
1 vote
2 answers
4k 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 ...
user avatar
1 vote
1 answer
51 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 ...
user avatar
  • 75
1 vote
1 answer
50 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.
user avatar
2 votes
1 answer
710 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 ...
user avatar
  • 65
1 vote
1 answer
75 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 ...
user avatar
  • 177
0 votes
0 answers
113 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 ...
user avatar
2 votes
3 answers
484 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 ...
user avatar
1 vote
1 answer
47 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)...
user avatar
1 vote
1 answer
3k 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 ...
user avatar
0 votes
0 answers
637 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 ...
user avatar
0 votes
0 answers
184 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 ...
user avatar
  • 46
0 votes
0 answers
118 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 ...
user avatar
  • 1,344
2 votes
2 answers
581 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 ...
user avatar
  • 43