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
25 views

TypeError in Nonce [Web3, Python, FlashBot]

Here is the code. When I wrote the private key of sender's address without string, it showed me provide sender's key as string. When I wrote the private key of sender's address in string, it showed me ...
Axaansh Dholiya's user avatar
1 vote
0 answers
16 views

Nonce delays while using different nodes

Question related to the nonce, In case I am using a scaling solution with few nodes due to massive traffic with many transactions and submitting a transaction to node X, but the nonce for the next ...
Sergey Foiering's user avatar
1 vote
1 answer
25 views

Redeploy to same address using CREATE (not CREATE2) | aka does a nonce reset?

Let's say I am using a (Gnosis) Safe as my main deployer account (0xD1) to allow for use of CREATE2 calls. I use my main account, 0xD1, to deploy a "TempCreator" contract (0xC2) using ...
L Co's user avatar
  • 113
0 votes
0 answers
36 views

Flashbot nonce error in simulation

I am recovering a transaccion from Mempool and sending through flashbot. The flashbot always respods m Simulation Error: message: 'err: nonce too high: address ...
Sven's user avatar
  • 1
0 votes
2 answers
87 views

How Can I Identify the Blockchain Where a Smart Contract Is Deployed Using Its Address?

I am trying to identify the specific blockchain where a smart contract has been deployed using its deployment address. However, I am unable to find a clear source or method for doing so. When I looked ...
Faisal Hussain's user avatar
1 vote
2 answers
123 views

How to drop and replace a transaction

I've read many stack posts but the ones I found are either very old or do not link to updated docs where the answer can be found. Does Ethereum have a replace by fee option similar to Bitcoin? ...
Nat's user avatar
  • 279
0 votes
0 answers
29 views

Efficient way for nonce generations

What is the most efficent way/ best practice / better practice for nonce generation that is used for blockchain quorum transactions? I am currently using etcd mutex global lock for nonce generation ...
Winston Andersen's user avatar
1 vote
1 answer
257 views

How to set transaction nonce when sending multiple transactions at the same time?

If I send transactions(web3.eth.sendSignedTransaction) to one contract at the same time using 10 different wallet addresses,do I need to manually set the nonce for each transaction? And how to set it?
user2873314's user avatar
0 votes
1 answer
593 views

Error: Returned error: nonce too low

const Web3 = require('web3'); const { ethers } = require('ethers'); const { Web3Provider } = require('@ethersproject/providers'); // Virtual addresses const fromAddress = '...
Amin Hlel's user avatar
0 votes
1 answer
353 views

Reset nonce to 0

Using hardhat and ethers.js, how do I reset the nonce queue to 0? Not submitting a new tx with the nonce of the one that's stuck. For example, the latest nonce I have is 432 and I want to reset it to ...
dNyrM's user avatar
  • 713
0 votes
2 answers
49 views

Gas settings when sending a tx

I currently have several txs stuck on Pending even after passing them 100 gwei of gasPrice while current baseFee is 0.000001086 gwei (on Goerli and using ethers.js). const ops = { gasLimit: ethers....
dNyrM's user avatar
  • 713
0 votes
1 answer
36 views

Verifying Transactions before Finding Nonce

I am trying to learn theoretical fundamentals of Blockchain. In PoW, the miner who finds the nonce first gets to create next block and all other nodes add that block. Now, what I don't understand ...
Brijesh's user avatar
  • 43
1 vote
0 answers
468 views

ECDSA Nonce reuse attack

so I recently stumbled upon this video by @bertcmiller who created two transactions with the same nonce "k". That seen I researched quite a lot of pages explaining how to recover the private ...
Robert Bahn's user avatar
1 vote
1 answer
92 views

0x protocol - Using the qoute endpoint without takerAddress parameter

I want to use the 0x quote api endpoint (https://docs.0x.org/0x-api-swap/api-references/get-swap-v1-quote). When requesting a swap, i do not know the takerAddress since at request time i do not know ...
Plus Ultra's user avatar
1 vote
1 answer
73 views

Can I sign a transaction several days in advance and give it to a 3rd party so they can execute it whenever they want?

Let's say I create and sign with my keys a transaction to swap USDC for ETH with all the required parameters (both parameters for the swap and tx parameters like gas, etc), but I don't send it. If I ...
Hiperfly's user avatar
4 votes
1 answer
1k views

How to use nonce to prevent signature replication?

I would like to verify that a message is sent by a certain address, and to get the signer address I use the following function: function VerifyMessage(bytes32 _hashedMessage, uint8 _v, bytes32 _r, ...
Ahmet Yazıcı's user avatar
0 votes
1 answer
704 views

Python Mass Transactions Nonce

currently am using web3.py to send transactions in python which has led to some problems web3 = Web3(Web3.HTTPProvider("https://mainnet.infura.io/v3/xxx")) PA=web3.eth.account.from_key(...
sijog70374's user avatar
2 votes
1 answer
606 views

I can't fully understand the usage of nonce in a solidity example

I'm reading a few examples from solidity docs: docs. I've come across this function: function claimPayment(uint256 amount, uint256 nonce, bytes memory signature) external { require(!usedNonces[...
Allennick's user avatar
  • 233
2 votes
2 answers
923 views

Is there a way to find out the first transaction sent TO an account?

Is there a way to find out the first transaction sent TO an account? Hey everyone, I know that given an address, I can check if a given transaction is the first tx.from by checking its nonce. Nonce == ...
trademarc's user avatar
0 votes
1 answer
642 views

Nonce of an account or contract in etherscan

According to ethereum.org, nonce is a counter that indicates the number of transactions sent from the account, and in a contract account, this number represents the number of contracts created by the ...
MohammadHosein Masoon's user avatar
0 votes
0 answers
394 views

How to increase an account nonce on web3js?

i'm running a script using web3js in which one i have my accounts[0] that is running 2 transactions. When i do: await web3.eth.getTransactionCount(accounts[0]) , i receive X (number) as a response. ...
Wallace's user avatar
0 votes
1 answer
173 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 ...
Olivier Bégassat's user avatar
0 votes
1 answer
2k 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 ...
Eddie Martinez's user avatar
0 votes
1 answer
123 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 ...
Viraj's user avatar
  • 23
1 vote
1 answer
2k 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: ...
Fabiano's user avatar
  • 173
0 votes
3 answers
506 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
Tor Chonlakan's user avatar
1 vote
2 answers
438 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 ...
Shanzid Shaiham's user avatar
0 votes
1 answer
41 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).... ...
mischat's user avatar
2 votes
1 answer
1k 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 = ...
Eddie R's user avatar
  • 121
3 votes
2 answers
5k 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/...
pachecovich's user avatar
1 vote
0 answers
187 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 ...
stucknonce's user avatar
0 votes
1 answer
306 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 ...
Barney Chambers's user avatar
1 vote
1 answer
126 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? ...
lagoiz's user avatar
  • 147
0 votes
1 answer
49 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) ...
lagoiz's user avatar
  • 147
0 votes
1 answer
79 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, ...
lagoiz's user avatar
  • 147
1 vote
2 answers
418 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.
user3923073's user avatar
0 votes
1 answer
395 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)...
Kinjo's user avatar
  • 21
0 votes
1 answer
129 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 ...
MShakeG's user avatar
  • 1,443
0 votes
0 answers
266 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 ...
Moisés Briseño Estrello's user avatar
1 vote
1 answer
818 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 ...
user3534080's user avatar
1 vote
1 answer
777 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 ...
CryptoGuss's user avatar
0 votes
1 answer
3k 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 ...
eZebda's user avatar
  • 1
0 votes
1 answer
94 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 &...
Remy Ponso's user avatar
2 votes
0 answers
166 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 ...
zzh1996's user avatar
  • 141
0 votes
1 answer
137 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, ...
curiousJorgeXX's user avatar
3 votes
4 answers
1k 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 ...
Matthew Pinnock's user avatar
1 vote
1 answer
1k 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 ...
PostTraumaticDesk's user avatar
1 vote
1 answer
388 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 ...
Alberto Molina's user avatar
0 votes
2 answers
29 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. ...
CaptPython's user avatar
0 votes
1 answer
757 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 ...
arelius's user avatar
  • 21