<!-- tempo-docs-context -->
> Source: [/docs/quickstart/connection-details](https://tempo.xyz/developers/docs/quickstart/connection-details.md)
> Section: [Tempo EVM](https://tempo.xyz/developers/docs/development.md). Build on Tempo EVM: wallets and keys, transactions and fees, TIP-20 Tokens, contracts, exchange, network details, nodes, protocol specifications, and changelog.
> [Documentation index](https://tempo.xyz/developers/llms.txt) · [Docs skill](https://tempo.xyz/developers/SKILL.md)

> Tempo MCP: Use `search`, `find_pages`, `read_page`, and `code` at `https://mcp.tempo.xyz` for Tempo and related documentation.
> If an indexed page is missing or reflects an older site, read this site’s [documentation index](https://tempo.xyz/developers/llms.txt) and Markdown pages directly.

<span id="how-to-connect-to-the-tempo-network" />

# Network details

Use Tempo Mainnet for production and Moderato testnet for development. Both support EVM tools and SDKs; each has its own RPC endpoint, chain ID, assets, and transaction history.

<span id="direct-connection-details" />

## Mainnet

| Property | Value |
| --- | --- |
| Network | Tempo Mainnet |
| Chain ID | `4217` |
| Currency symbol | `USD` |
| HTTP RPC | `https://rpc.tempo.xyz` |
| WebSocket RPC | `wss://rpc.tempo.xyz` |
| Explorer | [Tempo Explorer](https://explore.tempo.xyz) |

Use [Fund an account](https://tempo.xyz/developers/docs/guide/getting-funds) for supported funding paths.

<span id="tempo-testnet" />

## Testnet

| Property | Value |
| --- | --- |
| Network | Tempo Testnet (Moderato) |
| Chain ID | `42431` |
| Currency symbol | `USD` |
| HTTP RPC | `https://rpc.moderato.tempo.xyz` |
| WebSocket RPC | `wss://rpc.moderato.tempo.xyz` |
| Explorer | [Testnet Explorer](https://explore.testnet.tempo.xyz) |

Use the [faucet](https://tempo.xyz/developers/docs/quickstart/faucet) to get test stablecoins. Testnet funds are separate from mainnet funds.

<span id="connect-via-cli" />

## RPC endpoints and explorers

Read the current block number to check the connection. These examples use Moderato; use `https://rpc.tempo.xyz` (or omit `testnet: true` in Viem) for mainnet. Use the [Network example setup](https://tempo.xyz/developers/docs/network/examples) for the SDK dependencies and Wagmi `config`.

:::code-group
```ts [Viem]
import { createClient } from 'viem/tempo'

const client = createClient({ testnet: true })
console.log(await client.getBlockNumber())
```

```bash [CLI]
cast block-number --rpc-url https://rpc.moderato.tempo.xyz
```

```ts [Wagmi]
import { getBlockNumber } from 'wagmi/actions'

console.log(await getBlockNumber(config))
```

```python [Python]
from web3 import Web3

w3 = Web3(Web3.HTTPProvider("https://rpc.moderato.tempo.xyz"))
print(w3.eth.block_number)
```

```bash [API (RPC)]
curl https://rpc.moderato.tempo.xyz -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'
```
:::

Use the matching explorer to inspect transactions. For application integration, choose an [SDK](https://tempo.xyz/developers/docs/sdk) or read the [JSON-RPC reference](https://tempo.xyz/developers/docs/protocol/rpc). Use the [Tempo API](https://tempo.xyz/developers/docs/api) for indexed data and hosted services.

<span id="connect-using-a-browser-wallet" />

## Connect a browser wallet

Select your browser wallet to connect it to mainnet.

Connect a wallet in the interactive web page.

:::info[Native balances]
Tempo has no native gas token. A wallet may display a placeholder native balance. Read [TIP-20 balances](https://tempo.xyz/developers/docs/accounts/balances) for account funds and review [native-balance handling](https://tempo.xyz/developers/docs/quickstart/evm-compatibility#handling-eth-native-token-balance-checks) when integrating a wallet.
:::
