tx-bundler
v0.1.2
Published
Blockchain Transaction Bundler
Downloads
9
Maintainers
Readme
Transaction Bundler
MVP version
Transaction-Bundler is a package that makes you able to send multiple transaction together in a single transaction, to save gas, and time.
It could be very handy for Crypto Currency Exchanges and any other business who sends many transaction every day, and would enjoy saving some gas fee money.
Its very easy to use this package. Just install it:
npm i tx-bundler
and use it:
const pkg = require("tx-bundler");
async function testSendBatchedCoins(){
let res = await pkg.sendBatchedCoins(
"https://sepolia.infura.io/v3/YOUR-API-KEY",
["RECEIVER 1","RECEIVER 1"],
[0.001, 0.002],
"YOUR-PRIVATE-KEY"
)
console.log(res)
}
testSendBatchedCoins()
And thats it. You have sent a few Ether transactions in a single transactions.
Please be informed that:
- for now its on test and development phase, and it only works on Sepolia Test network. We will deploy it to main net, and some other chains later on.
- It will save gas, when you have to send a dozens of transactions. Otherwise, for a single transaction, it will not be cheaper at all.