> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gelato.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Sync Methods

Synchronous transaction methods wait for the final result instead of returning a task ID. These methods are specifically designed for fast chains and chains with Flashblocks enabled, where transaction confirmation times are minimal.

## Overview

| Method                | Returns      | Use Case                                |
| --------------------- | ------------ | --------------------------------------- |
| `sendTransaction`     | Task ID      | Fire and forget, poll status separately |
| `sendTransactionSync` | Final status | Wait for result in one call             |

## How It Works

```mermaid theme={null}
sequenceDiagram
    participant User
    participant SDK as Gelato SDK
    participant Relayer as Gelato Relayer
    participant Chain as Blockchain

    User->>SDK: sendTransactionSync(tx, timeout)
    SDK->>Relayer: Submit transaction
    Relayer->>Chain: Execute transaction
    Chain-->>Relayer: Transaction result
    Relayer-->>SDK: Final status
    SDK-->>User: TerminalStatus (success/failure)
```

1. **Single Call** - Submit transaction and receive final status in one API call
2. **Built-in Waiting** - SDK handles polling internally until transaction completes or times out
3. **Immediate Feedback** - Returns transaction receipt on success, or error details on failure
4. **Timeout Protection** - Configurable timeout prevents indefinite waiting

## Code Example

```typescript theme={null}
import { createGelatoEvmRelayerClient } from '@gelatocloud/gasless';

const relayer = createGelatoEvmRelayerClient({ apiKey, testnet: true });

const receipt = await relayer.sendTransactionSync({
  chainId: 84532,
  to: '0xContract',
  data: '0xCalldata',
  timeout: 30000
});

console.log('TX hash:', receipt.transactionHash);
```

## Additional Resources

* [Send Sync Transactions How-To](/gasless-with-relay/how-to-guides/send-sync-transactions) - Step-by-step implementation guide
* [Tracking Requests](/gasless-with-relay/how-to-guides/tracking-gelato-request) - How to track transaction status
