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

# Connect to Tavchain

> Add Tavchain Testnet to an EVM wallet using the chain ID, RPC and explorer settings, then select the network before signing transactions.

Open [Add Tavchain Testnet](https://testnet.tavchain.safeney.com/#wallet-heading) in the same browser as your wallet and approve the network request. If your wallet does not support the button, enter the settings below manually.

## Network details

| Setting | Tavchain Testnet |
| - | - |
| Network name | Tavchain Testnet |
| RPC endpoint | `https://api.testnet.tavchain.safeney.com/` |
| Chain ID | `771002` |
| Currency symbol | `TAV` |
| Native currency | Tavcoin, 18 decimals |
| Block explorer | [explorer.tavchain.safeney.com](https://explorer.tavchain.safeney.com/) |

## Add the network

**1. Open your wallet's network settings**

Choose **Add a custom network**. Wallet labels vary by version; see [MetaMask's network guide](https://docs.metamask.io/metamask-connect/evm/guides/manage-networks/).

**2. Enter the network details**

Copy the RPC endpoint, chain ID, currency symbol and explorer URL from the table above.

**3. Select Tavchain Testnet**

Save the settings and select the network before requesting Test TAV or sending a transaction.

Adding a network does not transfer funds or import a key into Tavchain's server. No VPN, node installation or separate Tavchain registration is required for the wallet flow.

## Check the network in your application

Select Tavchain Testnet for the connected site in the same browser as your wallet. Check that the application shows chain ID **771002** before signing. For Remix-specific steps, see [Deploy a contract](https://docs.tavchain.safeney.com/tavchain/deploy-token.md#connect-your-wallet).

> [accordion] Using a previous Tavchain testnet?
>
> The current EVM chain ID is **771002**. Balances, account nonces and contracts from the previous **771001** networks are not carried forward. Select the current network and request fresh Test TAV.

## For application developers

> [accordion] Add the network from an application
>
> With a provider explicitly selected by your user, the common network-add request is:
>
> ```javascript theme={null}
> await provider.request({
>   method: "wallet_addEthereumChain",
>   params: [{
>   "chainId": "0xbc3ba",
>   "chainName": "Tavchain Testnet",
>   "nativeCurrency": {
>     "name": "Tavcoin",
>     "symbol": "TAV",
>     "decimals": 18
>   },
>   "rpcUrls": [
>     "https://api.testnet.tavchain.safeney.com/"
>   ],
>   "blockExplorerUrls": [
>     "https://explorer.tavchain.safeney.com/"
>   ]
> }],
> });
> ```
>
> Ask separately to switch if needed using `wallet_switchEthereumChain` with `chainId: "0xbc3ba"`. Wallets may decline either request. Check `eth_chainId` after selection; adding a network alone does not establish the active chain. Trigger wallet requests from an intentional user action, not page load. Treat this as a standard provider integration example and check behavior with the wallet versions your application supports.

> [accordion] Check the chain ID with JSON-RPC
>
> ```bash theme={null}
> curl --fail-with-body --max-time 10 \
>   https://api.testnet.tavchain.safeney.com/ \
>   -H 'Content-Type: application/json' \
>   --data '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'
> ```
>
> The expected `result` is `"0xbc3ba"`. An unavailable endpoint may return HTTP 503; do not switch to an unrelated chain or paste a private key into a website to work around it.

## Next steps

> [card] [Get Test TAV](https://docs.tavchain.safeney.com/tavchain/faucet.md)
>
> Request development tokens for transfers and contract execution.

> [card] [Send a transfer](https://docs.tavchain.safeney.com/tavchain/first-transfer.md)
>
> Make a small transfer and verify the execution result.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.