> ## 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.

# Covalent Onchain Data API

> Get token balances and transactions for Covalent.

## Overview

<Tip>
  The Covalent Network serves as the universal data model for multi-chain indexing and querying. The Covalent Network represents the progressive decentralization of Covalent toward a community-owned and community-run protocol. Read more to understand the supply side, demand side, and roles of network operators in the network section of our docs.
</Tip>

GoldRush offers the most comprehensive Covalent 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 Covalent Data APIs provide fast, accurate, and developer-friendly access to the essential onchain data you need.

### Supported APIs

<Columns cols={2} />

## Mainnet

| Property             | Value                                       |
| -------------------- | ------------------------------------------- |
| **Chain Name**       | `covalent-internal-network-v1`              |
| **Chain ID**         | `1131378225`                                |
| **Network Type**     | Community Chain                             |
| **Support Level**    | community                                   |
| **Block Explorer**   | [Explorer](https://cqtscan.com/#/)          |
| **Official Website** | [Covalent Website](https://covalenthq.com/) |
| **Native Gas Token** | ETH                                         |

## API Usage

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

#### Chain Name

* `covalent-internal-network-v1` (mainnet)

#### Example Streaming Subscription

<CodeGroup>
  ```graphql GraphQL Subscription theme={null}
  subscription {
    walletTxs(
      chain_name: COVALENT_INTERNAL_NETWORK_V1,
      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.COVALENT_INTERNAL_NETWORK_V1,
      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/)
