# Batching Transaction

## 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:

![](https://1757549899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Me5QrMSqMI-eFmDUQUk%2Fuploads%2FhSdbxx9xuEs17q9ejKWt%2FEtherspot-BUIDLer-example-dapp.png?alt=media\&token=d9421e16-5bcc-42ff-a76c-0b9822c03004)

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

* [Swap](https://v1.etherspot.io/buidler-react-component/blocks/swaps) block
* Another [swap](https://v1.etherspot.io/buidler-react-component/blocks/swaps) block
* [Send](https://v1.etherspot.io/buidler-react-component/blocks/send) block

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

![](https://1757549899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Me5QrMSqMI-eFmDUQUk%2Fuploads%2FjsNH0fWmhvyHQsN5fiYk%2FEtherspot-BUIDLer-example-dapp%20\(1\).png?alt=media\&token=e0dd7214-07a6-43ca-84c1-0ee8f07f9221)

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:

![](https://1757549899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Me5QrMSqMI-eFmDUQUk%2Fuploads%2FVom5FqFptuO4UC7JpBN6%2FScreenshot%202022-11-29%20at%2015.18.31.png?alt=media\&token=fb145985-4bfb-4b5c-bf89-8bde9c2bd3a9)

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

![](https://1757549899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Me5QrMSqMI-eFmDUQUk%2Fuploads%2FL51b1CPZkqJF764BXs1O%2FScreenshot%202022-11-29%20at%2015.22.07.png?alt=media\&token=37f15ccc-a8e9-4836-8df9-22770e4092cd)
