Batching Transaction

Batching allows a user to group multiple transactions together as one.

Introduction

One of the features of Etherspot is the ability to batch transactions together to perforum multiple transactions together at the same time. Etherspot handles the execution of this.

Take the example below:

As you can see from the image above, there are three blocks being performed, which will be executed as one transaction:

Once the user has entered their block values, they can proceed to review their blocks on the next screen before they submit the transaction:

Once the user presses "Execute", they blocks will be batched into one transaction and sent via the connected provider.

Implementation

The batching functionality is automatically included as a core feature of the Etherspot BUIDLER component. Clicking on the button below adds another block to the batch:

You will then be given the option of which block you would like to add next:

Last updated