<EtherspotBatches />
The beginning of a transaction. Indicates that we are creating one or more batches of transactions.
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.
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.
The <EhterspotBatches />
component takes any child components like taxt, buttons etc.
Component Properties
Property | Description |
---|---|
| Optional: Takes a boolean value of |
| Optional: An ID (which can be a |
| 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 |
How to use
Below is an example of how to use the <EtherspotBatches />
component.
🎉 Congratulations!
You can now see how we us the <EtherspotBatches />
tag to enclose one or more of <EtherspotBatch />
tags.
Last updated