Logo
RPC Assistant

What is the SORA Network and how do you connect to it?

Summary

The SORA Network is a decentralized blockchain platform focused on creating a sovereign economic system. It uses the XOR token and a token bonding curve to manage supply, and it supports democratic governance and cross-chain interoperability. Developers can build on SORA using its Substrate-based chain, with tools like Polkaswap for DeFi. To interact with the network, you need a reliable RPC endpoint for reading data and submitting transactions. This guide explains what SORA is, how to choose an RPC provider, and how to get started with development.

SORA Network decision checklist

Before you build on SORA, make sure you have covered these points:

  • Understand the network's purpose: SORA is a Substrate-based chain focused on a decentralized economic system with the XOR token. It is not an EVM chain, so you will use Substrate RPC methods.
  • Choose the right endpoint: For production, use a managed RPC provider or run your own node. Public endpoints are for testing only.
  • Check WebSocket support: For real-time updates, you need WSS. Ensure your provider supports it.
  • Verify archive data needs: If you need historical state, confirm the provider offers archive nodes.
  • Plan for rate limits: Free tiers have limits. Estimate your traffic and choose a plan that fits.
  • Secure your API key: If using a managed service, keep your key secret and rotate it regularly.
  • Test with a simple call: Use chain_getBlockHash to verify connectivity before building.
  • Monitor performance: Set up alerts for latency and error rates to catch issues early.

What is the SORA Network?

The SORA Network is a decentralized blockchain designed to create a sovereign economic system. It uses the XOR token as its native asset, managed by a token bonding curve to adjust supply based on demand. The network supports democratic governance, allowing token holders to propose and vote on funding for projects. SORA also integrates with Polkaswap, a decentralized exchange, and aims for interoperability with other chains like Ethereum and Polkadot.

For developers, SORA offers a Substrate-based environment, meaning you can use standard Substrate RPC methods to interact with the chain. This includes querying balances, submitting transactions, and reading chain metadata.

Why RPC endpoints matter for SORA developers

RPC (Remote Procedure Call) endpoints are the gateway to the blockchain. They allow your dApp to read data and send transactions. Without a reliable endpoint, your application can experience downtime, slow responses, or failed transactions. For SORA, you need endpoints that support both HTTPS and WSS, as well as the specific methods required by Substrate.

When choosing an RPC provider, consider factors like uptime, latency, rate limits, and whether they offer archive data. A managed provider can save you the operational overhead of running your own node, but you should evaluate their performance and pricing.

How to connect to SORA: endpoints and setup

To connect to the SORA Network, you need an RPC endpoint. Here are the typical formats:

  • HTTPS: https://sora.api.onfinality.io/public (example, replace with actual)
  • WSS: wss://sora.api.onfinality.io/public (example, replace with actual)

You can test connectivity with a simple curl command:

curl -X POST https://sora.api.onfinality.io/public \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"chain_getBlockHash","params":[0],"id":1}'

For JavaScript, use the @polkadot/api library:

const { ApiPromise, WsProvider } = require('@polkadot/api');

const wsProvider = new WsProvider('wss://sora.api.onfinality.io/public');
const api = await ApiPromise.create({ provider: wsProvider });

const chain = await api.rpc.system.chain();
console.log('Connected to', chain.toString());

Evaluating RPC providers for SORA

When choosing an RPC provider for SORA, use this checklist:

CriterionWhat to checkWhy it matters
UptimeHistorical uptime statsDowntime breaks your app
LatencyResponse time from your regionSlow responses hurt UX
Rate limitsRequests per second allowedLimits can throttle your app
Archive dataAvailability of historical stateNeeded for analytics and debugging
WebSocket supportWSS endpoint availabilityRequired for real-time subscriptions
SecurityAPI key management and encryptionProtects your data and access
PricingCost per request or monthly feeMust fit your budget
SupportDocumentation and response timesHelps when issues arise

OnFinality offers RPC services for many networks, including SORA. You can check supported RPC networks and RPC pricing for details. For high-traffic or production workloads, consider a dedicated node for more control and performance.

Common pitfalls when using SORA RPC

  • Using public endpoints in production: Public endpoints are often rate-limited and unreliable. Use a managed provider or your own node.
  • Ignoring WebSocket for subscriptions: If you need live updates, you must use WSS. HTTPS only supports request-response.
  • Not handling rate limits: Even with a provider, you may hit limits. Implement retry logic and backoff.
  • Assuming EVM compatibility: SORA is Substrate-based, so use Substrate RPC methods, not Ethereum JSON-RPC.
  • Forgetting archive data: For historical queries, you need an archive node. Not all providers offer this.

Troubleshooting SORA RPC issues

If you encounter problems, try these steps:

  1. Check your endpoint: Ensure the URL is correct and includes the right protocol (https/wss).
  2. Test with a simple call: Use chain_getBlockHash to verify connectivity.
  3. Review rate limits: If you get 429 errors, you are exceeding limits. Upgrade your plan or add caching.
  4. Check for network issues: Use tools like ping or traceroute to diagnose latency.
  5. Contact support: If using a provider, reach out for help. OnFinality offers support for its services.

Key Takeaways

  • The SORA Network is a Substrate-based blockchain focused on a decentralized economic system.
  • RPC endpoints are essential for dApp development; choose a reliable provider.
  • Evaluate providers based on uptime, latency, rate limits, archive data, and support.
  • Use WebSocket for real-time data and handle rate limits gracefully.
  • OnFinality provides RPC services for SORA and other networks; check supported networks and pricing.

Frequently Asked Questions

What is the SORA Network?

The SORA Network is a decentralized blockchain platform that aims to create a sovereign economic system. It uses the XOR token and a token bonding curve to manage supply, and it supports democratic governance and cross-chain interoperability.

How do I get a SORA RPC endpoint?

You can use a public endpoint for testing, but for production, consider a managed RPC provider like OnFinality. Visit supported networks to see if SORA is available and get your endpoint.

Is SORA compatible with Ethereum?

No, SORA is Substrate-based, so it uses Substrate RPC methods. However, it can interoperate with Ethereum through bridges.

What is the XOR token?

XOR is the native token of the SORA Network, used for governance, transaction fees, and as a medium of exchange. Its supply is managed by a bonding curve.

Can I run my own SORA node?

Yes, you can run a full node, but it requires technical expertise and maintenance. A managed provider can simplify this.

What are the rate limits for SORA RPC?

Rate limits vary by provider. OnFinality offers different plans; check RPC pricing for details.

RPC Knowledge Base

Related RPC details

Never Worry about Infrastructure Again

OnFinality takes away the heavy lifting of DevOps so you can build smarter and faster.

Get Started