Skip to main content
Batching transactions combines multiple operations into a single transaction. Instead of staking tokens and claiming rewards separately, users can perform both in one transaction.

Getting Started

1

Import Dependencies

2

Setup Smart Account

3

Create Relayer Client

To create an API Key, visit the Gelato App and navigate to Paymaster & Bundler > API Keys.
4

Batch Multiple Transactions

Add multiple operations to the calls array: