Developer Endpoints
Feel free to use these endpoints to build on Rujira!
Stay updated with health checks and notifications through our Discord.
Detailed documentation is available in the THORChain Dev Docs.
THORChain Public Endpoints
Mainnet
Midgard REST API: midgard.ninerealms.com
Stagenet
Midgard REST API: stagenet-midgard.ninerealms.com
Rujira Ecosystem APIs
GraphQL API
High-performance API for extensive data across the Rujira ecosystem:
Mainnet: api.rujira.network/api/graphiql
Stagenet: preview-api.rujira.network/api/graphiql
Docs: Embedded inside the above links.
API key: Email [email protected] to request an API key.
For GraphQL subscriptions and real-time data streaming, use a Phoenix Socket-based connection instead of HTTP. This ensures low-latency, bidirectional communication with Rujira’s endpoints. A working example is available here, which:
Initializes a Phoenix Socket instance (
PhoenixSocketfromphoenix).Wraps it with
@absinthe/socketfor Relay-compatible GraphQL subscriptions.Includes fallback compatibility fixes for outdated libraries.
REST API
For RUJI Trade DEX and RUJI token supply integrations:
Docs: Rujira's REST API
For a more comprehensive solution, use our GraphQL API.
Endpoint Testing
RPC/API Endpoints:
curl -X GET https://<endpoint>/statusgRPC Endpoints:
grpcurl <grpc-endpoint> listLast updated