Todas las cadenas

Avalanche

En vivoEVMhttpswss

Avalanche está disponible en TheRPC bajo el endpoint unificado avalanche.therpc.io/<YOUR_KEY>. El mismo esquema JSON-RPC que tu integración actual — solo cambia el host.

Prueba una llamada ahora

Solicitud en vivo a través del proxy de documentación de TheRPC. No se necesita clave API para esta demo.

curl https://avalanche.therpc.io/YOUR_API_KEY \
-X POST \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'

Redes

RedChain IDExplorerEndpoint
Mainnet0xa86asnowtrace.ioavalanche.therpc.io
wallet_addEthereumChain
await window.ethereum.request({
method: 'wallet_addEthereumChain',
params: [{
chainId: '0xa86a',
chainName: 'Avalanche',
rpcUrls: ['https://avalanche.therpc.io/<YOUR_KEY>'],
nativeCurrency: {
name: 'AVAX',
symbol: 'AVAX',
decimals: 18,
},
blockExplorerUrls: ['https://snowtrace.io'],
}],
});