> For the complete documentation index, see [llms.txt](https://v1.etherspot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://v1.etherspot.io/transaction-kit/react-components/less-than-etherspotbatches-greater-than.md).

# \<EtherspotBatches />

## Introduction

The `<EtherspotBatches />` component is, at its simplest, a way to indicate to TransactionKit that you're about to start defining one or more `<EtherspotBatch />` components which may contain one or more `<EtherspotTransaction />` or `<EtherspotContractTransaction />` components.&#x20;

This tag helps TransactionKit keep itself organised, takes various component props to customise the transactions inside it and returns events when we need to [estimate](/transaction-kit/react-hooks/useetherspottransactions/estimate.md).

The `<EhterspotBatches />` component takes any child components like taxt, buttons etc.

## Component Properties

<table><thead><tr><th width="182">Property</th><th>Description</th></tr></thead><tbody><tr><td><code>skip</code></td><td>Optional: Takes a boolean value of <code>true</code> or <code>false</code>. Set <code>skip={true}</code> when you would like to skip these batches from being estimated and sent.</td></tr><tr><td><code>id</code></td><td>Optional: An ID (which can be a <code>string</code>, <code>number</code> etc) that allows you to define the ID of this batches group. We will use this ID if you provide it internally, but also allows you to use it to keep track elsewhere within your app.</td></tr><tr><td><code>onEstimated</code></td><td>Optional: Takes a function which accepts a parameter which is an estimation object. This is fired when an transaction cost estimation has been completed of all the contained <code>&#x3C;EtherspotBatch /></code> components. See the code example below to see how this is used.</td></tr></tbody></table>

## How to use

Below is an example of how to use the `<EtherspotBatches />` component.

{% code lineNumbers="true" %}

```jsx
// In your functional component or elsehwere
const onEstimateReceiver = (estimationData) => {
  console.log(
    'This is the cost estimate for all the batches',
    estimationData,
  );
}

// In your render or as a component...
<EtherspotBatches skip={true} onEstimated={onEstimateReceiver}>
  <EtherspotBatch>
    <EtherspotTransaction to={address0} value={amount0} />
  </EtherspotBatch>
  <EtherspotBatch>
    <EtherspotTransaction to={address1} value={amount1} />
    <EtherspotTransaction to={address2} value={amount2} />
  </EtherspotBatch>
</EtherspotBatches>
```

{% endcode %}

## :tada: Congratulations!

You can now see how we us the `<EtherspotBatches />` tag to enclose one or more of  `<EtherspotBatch />` tags.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://v1.etherspot.io/transaction-kit/react-components/less-than-etherspotbatches-greater-than.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
