An MVP-level library for batching multiple Ethereum transactions into one, reducing gas costs for exchanges and high-volume senders. Current version 0.1.2 is in active development and only supports the Sepolia testnet. It bundles transfers of native ETH (called coins) to multiple recipients in a single on-chain transaction. Key differentiator is simplicity: just provide an RPC URL, recipient list, amounts, and a private key. Not yet production-ready and not economical for single transfers. No published cadence; no TypeScript support.
npm install tx-bundlerVerified import paths — ran on the pinned version, not inferred.
Demonstrates sending a batched ETH transfer to two recipients on Sepolia testnet using an Infura RPC URL and a private key. Requires ethers as a peer dependency.
Wait for future versions that support mainnet or use an alternative batch transaction solution.
Use only when sending multiple transfers in one go. For single transfers, use direct ETH transfer.
Use require() in Node.js. For ESM projects, use dynamic import() or wait for an ESM update.
Use const { sendBatchedCoins } = require('tx-bundler');Ensure the sending account has sufficient ETH on Sepolia (or use a faucet).