Skip to content

0xV4L3NT1N3/ethereum-raw-transactions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Creating Ethereum raw transactions

Full article guide on Etherscan API docs.

Prerequisites

  • Node.js installed
  • A valid Etherscan API key

Getting Started

  1. Clone this repository using git clone https://github.com/0xV4L3NT1N3/ethereum-raw-transactions.git

  2. In a terminal, run npm install to install the required dependencies

  3. In transaction.js, replace the privatekey 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.

  1. Run this code using the command node transaction.js

Dependencies

Thanks to @ricmoo for the ethers.js library 🙌

About

Creating raw transactions on Ethereum using Ethers.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published