<EtherspotBatches />
The beginning of a transaction. Indicates that we are creating one or more batches of transactions.
Introduction
Component Properties
Property
Description
How to use
// 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>🎉 Congratulations!
Last updated
Was this helpful?