Batch Transaction
Use Blocto SDK to Combine multiple transactions and make them atomic
Note that Blocto SDK for EVM-compatible chains is still in Beta. APIs are subject to breaking changes.
Blocto SDK now supports Web3.js v4 batch transactions with version >= v.0.9.0. For version < v0.9.0, please use it along with Web3.js v1.
Introduction
With Blocto, you can combine multiple transactions into a single transaction for the following advantages:
Save gas fee
Make multiple transactions atomic, so they either all succeed or all fail
Usage
There are two ways to combine transactions:
A. EIP-1193 (Recommended)
B. Web3.js Batch Request
web3.js 4.x.x version:
Sample Code
For more information about batch transactions web3.js 4.x.x documentation.
web3.js 1.x.x version:
Sample Code
For more information about batch transactions, check out web3.js documentation.
Last updated