Skip to content

sanbir/sign-and-broadcast-raw-tx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sign-and-broadcast-raw-tx

  1. Build an image
docker build -t sign-and-broadcast-raw-tx .
  1. Run it
docker run -e RAW_TRANSACTION="YOUR_RAW_TRANSACTION" -e PRIVATE_KEY="YOUR_PRIVATE_KEY" -it sign-and-broadcast-raw-tx
  1. (Optional) Edit env variables in Dockerfile instead of passing them via a command line
ENV RAW_TRANSACTION="0x"
ENV PRIVATE_KEY="0x"
ENV RPC_URL="https://rpc.ankr.com/eth_goerli"
ENV GAS_LIMIT=1000000
ENV MAX_FEE_PER_GAS_IN_GWEI=50
ENV MAX_PRIORITY_FEE_IN_GWEI=1
ENV VALUE_IN_ETHER=32

Then do

docker build -t sign-and-broadcast-raw-tx .
docker run -it sign-and-broadcast-raw-tx

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published