What is a nonce in crypto? On account-based blockchains such as Ethereum, the nonce is the sequence number of transactions sent from an address. It starts at 0 and goes up by 1 with every transaction sent. It ensures that an address’s transactions execute in order and prevents the same transaction from being executed twice. Poor nonce management can cause transactions to queue, wait indefinitely, or even be replaced by accident. Bitcoin mining also has a field called a nonce, but that is an arbitrary number in the block header and has nothing to do with the transaction sequence number discussed here.
What Does a Nonce Do?
First, it enforces order: nodes only execute an address’s transactions in ascending nonce order. Second, it prevents replay: each nonce can be used only once, so a confirmed transaction will not execute again even if someone rebroadcasts it. Third, it enables replacement: sending a new transaction with the same nonce and a higher fee can replace an older one that has not yet been included, which is how transactions are sped up or cancelled.
What Happens When Something Goes Wrong With the Nonce?
The most common problem is queuing: if one transaction is stuck because its fee is too low, every transaction with a higher nonce waits behind it. Next is a gap: for example, transaction 5 fails to broadcast, but the system goes on to send 6 and 7, which then wait until 5 is filled in. Then there is reuse: two services send from the same address at the same time and both pick the same nonce, so only one can succeed and the other is replaced or rejected, while the business system may think both went out.
How Should Businesses Manage Nonces When Sending at High Volume?
An address’s nonces should be assigned by a single service, rather than having several systems each ask a node for the next nonce. When a send fails, first confirm whether the transaction was actually broadcast before deciding to resend or hand that nonce to the next transaction, and check regularly for gaps. When withdrawal volume is high, spread transactions across several hot wallet addresses so one stuck address does not hold up every withdrawal. Replacing a transaction with the same nonce is also a new signature and should go through the approval workflow.
Conclusion
A nonce is each address’s transaction sequence number on account-based chains. It enforces order, prevents replay, and underpins speeding up and cancelling transactions. Businesses should assign nonces from a single service, catch gaps promptly, and spread high-volume withdrawals across multiple addresses. Safeheron’s Wallet-as-a-Service provides businesses with MPC key management and a policy engine.
Want high-volume withdrawals to run more reliably? Contact Safeheron’s Sales Team to Book a 1:1 Demo
Looking for a secure way to manage digital assets?
Talk to our experts and find the right solution for your business.
Request a DemoLooking for a secure way to manage digital assets?
Talk to our experts and find the right solution for your business.