Connecting to THORChain

This guide helps developers connect to THORChain's network for querying data, building wallets, dashboards, or debugging network issues. THORChain provides five primary data sources:

  • Midgard: Consumer data for swaps, pools, and volume, ideal for dashboards.
  • THORNode: Raw blockchain data for THORChain-specific queries, used by wallets and explorers.
  • Cosmos RPC: Generic Cosmos SDK data, such as balances and transactions.
  • Tendermint RPC: Consensus and node status data for monitoring.
  • gRPC: Full Cosmos SDK interface via protocol buffers.

Warning

Endpoint Migration (April 2025): Nine Realms is retiring all *.ninerealms.com endpoints. 301 redirects are being placed starting the week of April 7, redirects will be removed around April 14, and all endpoints will be fully shut down after April 20, 2025. Clients must migrate to the new endpoints listed below before that date.

Info

The below endpoints are run by specific organisations for public use. There is a cost to running these services. If you want to run your own full node, please see https://docs.thorchain.org/thornodes/overview.

Quick Reference

SourcePurposeMainnet URLsStagenet URLs
MidgardSwap, pool, volume, and user data- gateway.liquify.com/chain/thorchain_midgard
- midgard.thorchain.network
TBD
THORNodeTHORChain-specific blockchain data- gateway.liquify.com/chain/thorchain_api
- thornode.thorchain.network
- Pre-hard-fork (blocks ≤4786559): gateway.liquify.com/chain/thorchain_v1_api
TBD
Cosmos RPCCosmos SDK data (e.g., balances)- gateway.liquify.com/chain/thorchain_api
- thornode.thorchain.network
TBD
Tendermint RPCConsensus and node status data- gateway.liquify.com/chain/thorchain_rpc
- rpc.thorchain.network
- Pre-hard-fork (blocks ≤4786559): gateway.liquify.com/chain/thorchain_v1_rpc
TBD
gRPCCosmos SDK via protocol buffers- grpc.thorchain.networkTBD

Info

Stagenet endpoints are being transitioned. New URLs will be published when available.

Info

THORSwap (*.thorswap.net) provides private endpoints for THORSwap application users. Contact THORSwap for access.

Usage Guidelines

  • Rate Limits: Liquify enforces a rate limit of 50,000 requests per day per IP. Include an x-client-id header to identify your application — Liquify can increase limits for applications that include this header.
  • Run Your Own Node: For production apps, run a THORNode to avoid rate limits and ensure uptime. See THORNode Setup Guide.
  • Hard-Fork Note: Mainnet hard-fork at block 4786560 requires post-hard-fork endpoints for newer data. Liquify provides full archive support and smart-routes archive requests, so both pre and post hard-fork data is accessible via the same endpoints. Dedicated pre-hard-fork endpoints are also available (see below).
  • Error Handling: Handle HTTP 429 (rate limit) or 503 (node overload) with exponential backoff for retries.

Midgard

Midgard provides time-series data for swaps, pools, volume, and liquidity providers, ideal for dashboards and analytics. It proxies THORNode queries to reduce network load and runs on every node.

THORNode

THORNode provides raw blockchain data (e.g., balances, transactions) specific to THORChain's state machine, critical for wallets and block explorers. Avoid excessive queries to public nodes to prevent overloading.

Cosmos RPC

Cosmos RPC provides generic Cosmos SDK data (e.g., account balances, transactions). Common endpoints include /cosmos/bank/v1beta1/balances and /cosmos/base/tendermint/v1beta1/blocks. Not all endpoints are enabled.

Cosmos Documentation

Cosmos Endpoints

Use THORNode URLs with /cosmos/... paths.

Tendermint RPC

Tendermint (CometBFT) RPC provides consensus and node status data (e.g., block height, validator status), useful for monitoring and debugging.

Tendermint Documentation

Ports

  • MAINNET Port: 27147
  • STAGENET Port: 26657

Tendermint RPC Endpoints

Info

Chainnet (rpc.thorchain.network) intentionally restricts some Tendermint RPC endpoints (e.g., net_info, consensus_state, dump_consensus_state). Use Liquify for full Tendermint RPC access.

gRPC

gRPC provides the full Cosmos SDK interface via protocol buffers, useful for programmatic access from languages with gRPC support.

Info

gRPC uses protocol buffers over HTTP/2, not JSON over HTTP. Standard HTTP clients (curl, browsers) will not work — use a gRPC client library.

P2P

P2P is the peer-to-peer network layer for node communication, useful for debugging connectivity issues between THORChain nodes.

  • MAINNET Port: 27146
  • STAGENET Port: 26656

P2P Guide

Example: Check Peer Connections

curl -X GET "https://gateway.liquify.com/chain/thorchain_rpc/net_info" -H "accept: application/json"

Other Services

The following services have also moved:

Old URLNew URL
track.ninerealms.comtrack.thorchain.org
haskoin.ninerealms.com/bchapi.haskoin.com/bch
dashboards.ninerealms.comTBD
ops.ninerealms.com/toolsDeprecated

External Chain RPCs

Nine Realms previously provided public RPC proxies for external chains (e.g., bitcoin.ninerealms.com, ethereum.ninerealms.com). These endpoints are being retired. Clients should migrate to a provider of their choice for external chain RPC access.

The following endpoints are affected:

  • avalanche.ninerealms.com
  • base.ninerealms.com
  • binance-smart.ninerealms.com
  • bitcoin-cash.ninerealms.com
  • bitcoin.ninerealms.com
  • dogecoin.ninerealms.com
  • ethereum.ninerealms.com
  • gaia.ninerealms.com
  • litecoin.ninerealms.com
  • tron.ninerealms.com
  • xrp.ninerealms.com