Skip to content

Simple example how to do an ETH transaction signing

License

Notifications You must be signed in to change notification settings

Systerr/ethSignDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is a tutorial of how to make a ETH transaction by using only low level cryptograhpy libraries.

Setup

This demo required node.js >=20.12.0 (loadEnvFile feature)

Please install it first

https://nodejs.org/en

Run

First install dependency

npm i

This demo suppose to work with a nbn testnet mostly bacausse this testnet have a good faucet (no discord, twitter posting subscription, etc). But it easy to use other chains too https://www.bnbchain.org/en/testnet-faucet

Key generation

Given command will generate priate key for you and save it to .env file

node src/01-GenerateKey.js

Signin and sendig transaction

This is step by step guide to sign a transaction and broadcast it. Please take a look at codebase to understand it

node node src/02-TransferNative.js

About

Simple example how to do an ETH transaction signing

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published