WHAT IS A NONCE

In Ethereum, every transaction has a nonce. The nonce is the number of transactions sent from a given address.

In English, a nonce is a number that can only be used once. In cryptography, a nonce is a one-time code selected in a random or pseudo-random manner that is used to securely transmit a main password, preventing replay attacks.

Each time you send a transaction, the nonce value increases by 1. There are rules about what transactions are considered valid transactions, and the nonce is used to enforce some of these rules.

Transactions must be in order. You cannot have a transaction with a nonce of 1 mined before one with a nonce of 0.

Source: https://kb.myetherwallet.com/zh/transactions/what-is-nonce



TO GET A NONCE MANUALLY

To create an Ethereum transaction manually, you need a valid nonce.

To get a nonce manually, you should use some third-party service known as API or proxy.

We suggest the following endpoints:

(i) Blockcypher Ethereum API

Example: https://api.blockcypher.com/v1/eth/main/addrs/0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B

Where 0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B is your own address.

The result looks like:

(ii) Etherscan Ethereum API

Example: https://api.etherscan.io/api?module=proxy&action=eth_getTransactionCount&address=0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B

The result looks like: