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

# Tempo Onchain Data API

> Get token balances, transactions, and OHLCV pricing data for Tempo.

## Overview

<Tip>
  Tempo is a general-purpose blockchain optimized for payments.
</Tip>

GoldRush offers the most comprehensive Tempo Data API suite for developers, analysts, and enterprises. Whether you're
building a DeFi dashboard, a wallet, a trading bot, an AI agent or a compliance platform,
our Tempo Data APIs provide fast, accurate, and developer-friendly access to the essential onchain data you need.

### Supported APIs

<Columns cols={2}>
  <Card title="Streaming API" icon="https://mintcdn.com/goldrush/HCWRKGncxpy71D8p/images/icons/streaming.svg?fit=max&auto=format&n=HCWRKGncxpy71D8p&q=85&s=c4a22e003bde989c0cd2d01a67bd6adf" href="/goldrush-streaming-api" cta="Read docs" width="24" height="24" data-path="images/icons/streaming.svg">
    Subscribe to real-time blockchain events with sub-second latency using GraphQL over WebSockets.
    Track token transfers, DEX activity, wallet movements, and OHLCV candlestick data across fast chains like Base and Solana. <br /><br />
    <b>Use cases: Trading bots & dashboards, gaming, and AI Agents.</b>
  </Card>
</Columns>

## Mainnet

| Property             | Value                                        |
| -------------------- | -------------------------------------------- |
| **Chain Name**       | `TEMPO_MAINNET`                              |
| **Chain ID**         | `4217`                                       |
| **Network Type**     | Frontier Chain                               |
| **Support Level**    | frontier                                     |
| **Block Explorer**   | [Tempo Explorer](https://explore.tempo.xyz/) |
| **Official Website** | [Tempo Website](https://tempo.xyz/)          |
| **Native Gas Token** | Multiple Stablecoins                         |

## API Usage

To use this blockchain network in GoldRush API calls, use:

#### Chain Name

* `TEMPO_MAINNET` (mainnet)

#### Example Streaming Subscription

<CodeGroup>
  ```graphql GraphQL Subscription theme={null}
  subscription {
    walletTxs(
      chain_name: TEMPO_MAINNET,
      wallet_addresses: ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"]
    ) {
      block_signed_at
      block_height
      tx_hash
      tx_offset
      successful
      decoded_type
    }
  }
  ```

  ```typescript TypeScript SDK theme={null}
  import { GoldRushClient, StreamingChain } from "@covalenthq/client-sdk";

  const client = new GoldRushClient("<GOLDRUSH_API_KEY>");

  client.StreamingService.subscribeToWalletTxs(
    {
      chain_name: StreamingChain.TEMPO_MAINNET,
      wallet_addresses: ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"],
    },
    {
      next: (data) => console.log("Received data:", data),
      error: (error) => console.error("Error:", error),
      complete: () => console.log("Stream completed"),
    }
  );
  ```
</CodeGroup>

<Info>
  Connect via WebSocket at `wss://streaming.goldrushdata.com/graphql` with your API key in the connection parameters.
  See the [Streaming API Quickstart](/goldrush-streaming-api/quickstart) for full setup details.
</Info>

## Additional Resources

* [GoldRush API Documentation](https://goldrush.dev/docs/)
* [Supported Chains List](https://goldrush.dev/chains/)
* [API Reference](https://goldrush.dev/docs/api-reference/)
