Logo
RPC Assistant

What Is the SORA Blockchain Project and How Do You Build on It?

Summary

The SORA blockchain project is a decentralized monetary system and DeFi platform built on Substrate, designed to create a supranational economic framework. It includes the XOR token, the Polkaswap DEX, and the TBC (Token Bonding Curve). This article explains the project's architecture, how to connect to the SORA network via RPC endpoints, and how to choose the right infrastructure for building applications.

Quick Recommendation: How to Connect to SORA for Your Use Case

Before diving into the details, here's a quick guide to help you decide how to interact with the SORA network based on your needs:

  • Building a DeFi application or wallet: You need a reliable RPC endpoint that supports both standard Substrate calls and custom SORA runtime methods. For production, consider a managed RPC service like OnFinality to avoid the overhead of running your own node.
  • Running a validator or collator: You'll need to run a full node with specific hardware requirements. Refer to the official SORA documentation for the latest specifications.
  • Just exploring the network: You can use public RPC endpoints for light queries, but be aware of rate limits and reliability issues. For consistent access, a dedicated endpoint is recommended.

For a production-grade setup, evaluate providers based on uptime, support, and scalability. OnFinality offers managed RPC services for SORA and many other networks, allowing you to focus on your application logic.

What Is the SORA Blockchain Project?

The SORA blockchain project is a decentralized, open-source network designed to create a supranational economic system. It aims to provide tools for managing digital assets, including a built-in decentralized exchange (Polkaswap) and a mechanism for creating new assets through a Token Bonding Curve (TBC). The project is built on Substrate, the blockchain framework developed by Parity Technologies, which allows for customizability and interoperability with the Polkadot ecosystem.

SORA's native token, XOR, serves as the network's utility token, used for governance, transaction fees, and as a reserve asset within the TBC. The project's vision is to enable communities to create their own economic zones with tailored monetary policies, potentially addressing issues like inflation and financial inclusion.

SORA Architecture: Substrate, Parachain, and the TBC

SORA is built on Substrate, which provides a modular framework for creating custom blockchains. The network operates as a standalone chain with the potential to connect to Polkadot as a parachain. Key components include:

  • Substrate Runtime: The core logic of the network, including consensus, governance, and asset management.
  • Polkaswap: A decentralized exchange (DEX) that uses an Automated Market Maker (AMM) model, allowing users to swap tokens without an order book.
  • Token Bonding Curve (TBC): A smart contract mechanism that automatically adjusts the supply of XOR based on demand, creating a price-stabilizing effect.
  • Governance: XOR holders can participate in on-chain governance, proposing and voting on network upgrades.

This architecture enables SORA to offer unique features like the TBC, which is designed to reduce volatility and provide a predictable monetary policy.

SORA Token (XOR) and Its Role

XOR is the native token of the SORA network. It serves multiple purposes:

  • Transaction Fees: Used to pay for network operations.
  • Governance: Allows holders to vote on proposals.
  • TBC Reserve: The TBC uses XOR as a reserve asset to back newly created tokens.
  • Staking: Users can stake XOR to secure the network and earn rewards.

Understanding XOR's role is crucial for developers building on SORA, as it affects transaction costs and incentive structures.

Connecting to SORA: RPC Endpoints and Chain Settings

To interact with the SORA network programmatically, you need an RPC endpoint. SORA supports standard Substrate RPC methods, as well as custom methods for its runtime modules. Here are the typical chain settings:

SettingValue
Network NameSORA
RPC URLhttps://sora.api.onfinality.io/public
Chain IDNot applicable (Substrate-based)
SymbolXOR
Block Explorersorametrics.org

Note: The public endpoint is suitable for testing and light usage. For production applications, consider using a dedicated RPC service to ensure reliability and performance.

Making RPC Calls to SORA

You can interact with SORA using standard JSON-RPC calls. Here's an example using curl to get the latest block number:

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

For more complex interactions, such as querying account balances or submitting transactions, you can use the Polkadot.js API. Here's a JavaScript example:

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

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

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

  const lastHeader = await api.rpc.chain.getHeader();
  console.log('Last block number:', lastHeader.number.toNumber());

  await api.disconnect();
}

main().catch(console.error);

This code connects to the SORA network via WebSocket and retrieves basic information.

Choosing the Right RPC Infrastructure for SORA

When building on SORA, you have two main options for RPC access: running your own node or using a managed service. Here's a comparison to help you decide:

FactorSelf-Hosted NodeManaged RPC Service (e.g., OnFinality)
Setup TimeHigh (hours to days)Low (minutes)
MaintenanceYou handle upgrades, monitoring, and scalingProvider handles it
CostHardware and operational costsSubscription or usage-based
ReliabilityDepends on your infrastructureTypically high with SLAs
ScalabilityManual scalingAutomatic scaling

For most developers, a managed RPC service is the pragmatic choice, especially for production applications. OnFinality offers SORA RPC endpoints with high availability and performance, backed by a global infrastructure.

Common Pitfalls and Troubleshooting

When working with SORA RPC, you might encounter issues such as:

  • Connection timeouts: Ensure your endpoint is correct and that your network allows WebSocket connections.
  • Rate limiting: Public endpoints may have rate limits. Consider a dedicated endpoint for high-volume applications.
  • Method not found: Some RPC methods may not be available on public endpoints. Check the SORA documentation for supported methods.
  • Block sync issues: If running your own node, ensure it is fully synced before making queries.

If you experience persistent issues, check the SORA network status and consider reaching out to the community or your RPC provider's support.

Key Takeaways

  • The SORA blockchain project is a Substrate-based network focused on creating a decentralized monetary system with XOR and Polkaswap.
  • Developers can connect to SORA using standard Substrate RPC methods via public or managed endpoints.
  • For production applications, a managed RPC service like OnFinality offers reliability and scalability without the operational overhead.
  • Always verify the latest chain settings and RPC URLs from official sources.

Frequently Asked Questions

What is the SORA blockchain project?

The SORA blockchain project is a decentralized network built on Substrate, designed to create a supranational economic system. It features the XOR token, Polkaswap DEX, and a Token Bonding Curve to manage asset supply.

How do I get XOR tokens?

You can acquire XOR through Polkaswap or centralized exchanges that list it. Always ensure you use official channels to avoid scams.

Can I run a SORA node?

Yes, SORA is open-source, and you can run a full node. Refer to the official documentation for hardware requirements and setup instructions.

What is the difference between SORA and other DeFi platforms?

SORA's unique features include the Token Bonding Curve and its focus on creating a sovereign economic framework, distinguishing it from typical DeFi protocols.

Is SORA connected to Polkadot?

SORA is built on Substrate and can connect to Polkadot as a parachain, but it operates as an independent network with its own consensus and governance.

For more detailed information, visit the SORA network page and explore our RPC pricing for managed infrastructure options. You can also browse all supported networks to see other chains we support.

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