Getting Started
Create Relayer Client
To create an API Key, visit the Gelato App and navigate to
Relayer > API Keys.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
chainId | number | Yes | Target chain ID |
to | Address | Yes | Target contract address |
data | Hex | Yes | Transaction calldata |
authorizationList | Authorization[] | No | EIP-7702 authorizations |
context | unknown | No | Optional context (e.g., from fee quote) |
timeout | number | Yes | Max wait time in milliseconds |
Return Type
The sync method returns aTransactionReceipt directly on success, or throws an error on failure:
Async vs Sync Comparison
- Async (sendTransaction)
- Sync (sendTransactionSync)
Additional Resources
- Sync Methods Overview - Feature overview
- Payment Methods - Available payment options
- Tracking Requests - How to track transaction status