Getting Started
1
Import Dependencies
2
Create Relayer Client
To create an API Key, visit the Gelato App and navigate to
Relayer > API Keys.3
Send Sync Transaction
Submit a transaction and wait for the final result:
Parameters
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