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

# Network endpoints

> Public RPC, WebSocket, REST, and explorer endpoints for Autheo Mainnet and Testnet.

## Mainnet

| Service                   | URL                                       |
| ------------------------- | ----------------------------------------- |
| JSON-RPC HTTP             | `https://rpc1.autheo.com`                 |
| JSON-RPC HTTP (secondary) | `https://rpc2.autheo.com`                 |
| JSON-RPC HTTP (tertiary)  | `https://rpc3.autheo.com`                 |
| EVM block explorer        | `https://evm-explorer.autheo.com/`        |
| EVM block explorer API    | `https://evm-explorer.autheo.com/api/v2/` |
| Cosmos explorer           | `https://cosmos.autheo.com`               |

## Testnet

| Service                   | URL                                  |
| ------------------------- | ------------------------------------ |
| JSON-RPC HTTP (primary)   | `https://testnet-rpc1.autheo.com`    |
| JSON-RPC HTTP (secondary) | `https://testnet-rpc2.autheo.com`    |
| Testnet faucet            | `https://testnet-faucet.autheo.com/` |

## Network parameters

<Tabs>
  <Tab title="Mainnet">
    | Parameter          | Value                 |
    | ------------------ | --------------------- |
    | Chain ID (Cosmos)  | `autheo_2127-1`       |
    | Chain ID (EVM)     | `2127`                |
    | Currency symbol    | `THEO`                |
    | Native token denom | `aauth` (18 decimals) |
    | Block time         | \~5 seconds           |
    | EIP-155            | Enabled               |
    | EIP-1559           | Enabled               |
  </Tab>

  <Tab title="Testnet">
    | Parameter          | Value                                |
    | ------------------ | ------------------------------------ |
    | Chain ID (Cosmos)  | `autheo_785-1`                       |
    | Chain ID (EVM)     | `785`                                |
    | Currency symbol    | `THEO`                               |
    | Native token denom | `aauth` (18 decimals)                |
    | Block time         | \~5 seconds                          |
    | Faucet             | `https://testnet-faucet.autheo.com/` |
  </Tab>
</Tabs>

## Connecting with MetaMask

<Tabs>
  <Tab title="Mainnet">
    Use the following settings when adding Autheo Mainnet as a custom network in MetaMask:

    | Field              | Value                              |
    | ------------------ | ---------------------------------- |
    | Network name       | Autheo                             |
    | Default RPC URL    | `https://rpc1.autheo.com`          |
    | Chain ID           | `2127`                             |
    | Currency symbol    | `THEO`                             |
    | Block explorer URL | `https://evm-explorer.autheo.com/` |
  </Tab>

  <Tab title="Testnet">
    Use the following settings when adding Autheo Testnet as a custom network in MetaMask:

    | Field              | Value                              |
    | ------------------ | ---------------------------------- |
    | Network name       | Autheo Testnet                     |
    | Default RPC URL    | `https://testnet-rpc1.autheo.com`  |
    | Chain ID           | `785`                              |
    | Currency symbol    | `THEO`                             |
    | Block explorer URL | `https://evm-explorer.autheo.com/` |

    See [Connect to testnet](/getting-started/wallets/connect-to-testnet) for step-by-step instructions.
  </Tab>
</Tabs>

## Connecting with ethers.js

<Tabs>
  <Tab title="Mainnet">
    ```javascript theme={null}
    import { ethers } from "ethers";

    const provider = new ethers.JsonRpcProvider("https://rpc1.autheo.com");
    const network = await provider.getNetwork();
    console.log(network.chainId); // 2127n
    ```
  </Tab>

  <Tab title="Testnet">
    ```javascript theme={null}
    import { ethers } from "ethers";

    const provider = new ethers.JsonRpcProvider("https://testnet-rpc1.autheo.com");
    const network = await provider.getNetwork();
    console.log(network.chainId); // 785n
    ```
  </Tab>
</Tabs>

## Connecting with the CLI

<Tabs>
  <Tab title="Mainnet">
    ```bash theme={null}
    # Query a node's sync status
    autheod status --node https://rpc1.autheo.com:443

    # Send a transaction
    autheod tx bank send <from-key> <to-address> 1000000000000000000aauth \
      --chain-id autheo_2127-1 \
      --node https://rpc1.autheo.com:443 \
      --keyring-backend file
    ```
  </Tab>

  <Tab title="Testnet">
    ```bash theme={null}
    # Query a node's sync status
    autheod status --node https://testnet-rpc1.autheo.com:443

    # Send a transaction
    autheod tx bank send <from-key> <to-address> 1000000000000000000aauth \
      --chain-id autheo_785-1 \
      --node https://testnet-rpc1.autheo.com:443 \
      --keyring-backend file
    ```
  </Tab>
</Tabs>

## WebSocket connections

Use the `wss://` scheme on port 8546 when connecting via WebSocket:

```javascript theme={null}
// Mainnet
const wsProvider = new ethers.WebSocketProvider("wss://rpc1.autheo.com:8546");

// Testnet
const wsProvider = new ethers.WebSocketProvider("wss://testnet-rpc1.autheo.com:8546");
```

<Note>
  If you need dedicated node access with higher rate limits or guaranteed uptime, see [managed hosting options](/validator-program/hosting-options) from approved providers such as InfStones and Zeeve.
</Note>
