Skip to content

AnnaBarotova/sign-and-broadcast-raw-tx

 
 

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

addition of parameters

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.3%
  • Dockerfile 7.7%