Full article guide on Etherscan API docs.
- Node.js installed
- A valid Etherscan API key
-
Clone this repository using
git clone https://github.com/0xV4L3NT1N3/ethereum-raw-transactions.git
-
In a terminal, run
npm install
to install the required dependencies -
In
transaction.js
, replace theprivatekey
variable with your own private key.
You can generate a private key from MyEtherWallet or import one from a wallet such as Metamask
Remember, private keys are sensitive information, do not share them with your important accounts.
- Run this code using the command
node transaction.js