OPRAIL FOR DEVELOPERS

Build on Telcoin.
Start with one request.

Live blockchain reads, indexed history and SDKs that fit your workflow. Connect to Adiri, create an API key, and start building with TypeScript, .NET or REST.

100,000 requests/month · No payment card required

YOUR FIRST BLOCKCHAIN READAdiri · Testnet

From API key to first request.

Choose the network in your URL. Start with a simple read.

Read the latest block
cURL
curl --fail-with-body \
  "$OPRAIL_API_ORIGIN/adiri/api/v1/blocks/latest" \
  -H "X-API-Key: $OPRAIL_API_KEY"

A FOUNDATION FOR YOUR NEXT BUILD

The chain operations you need.
Without a node to manage.

01 / READ

Understand the chain

Fetch native TEL balances, account nonces, gas prices, blocks, transactions and execution receipts.

02 / SUBMIT

Bring your signed transactions

Sign in your own application and submit the bytes through the API. Your private keys stay with you.

03 / MANAGE

Keep access under control

Create, copy, rotate and revoke API keys. See your shared monthly allowance and usage in the portal.

MADE FOR DEVELOPERS

From account to
first request.

  1. Create your free account.
  2. Generate an API key in the portal.
  3. Choose your API origin and network, then make a request.

Use REST directly or build with our TypeScript and .NET clients. Choose Adiri for staging or an enabled network on production. Both networks use the same account allowance.

Read the API reference →

Choose the network in your API URL

Keep the API key on your backend. Use the API origin for your environment, then add /adiri or /mainnet.

Adiri/adiri/api/v1/blocks/latestStaging and configured production
Mainnet/mainnet/api/v1/blocks/latestProduction only, after activation

Staging is Adiri only. A mainnet request will not fall back to Adiri. On production, both enabled networks share your account keys, monthly quota and rate limit: 500 Adiri calls + 500 mainnet calls use 1,000 requests.

For this environment, set OPRAIL_API_ORIGIN to https://api.oprail.com. Use an origin without a network path or trailing slash.

cURL · Adiri request
curl --fail-with-body \
  "$OPRAIL_API_ORIGIN/adiri/api/v1/blocks/latest" \
  -H "X-API-Key: $OPRAIL_API_KEY"
cURL · Mainnet on production

Set OPRAIL_PRODUCTION_API_ORIGIN to your approved production API origin. Mainnet must be enabled there.

curl --fail-with-body \
  "$OPRAIL_PRODUCTION_API_ORIGIN/mainnet/api/v1/blocks/latest" \
  -H "X-API-Key: $OPRAIL_API_KEY"
TypeScript SDK · Explicit network selection
import { OpRailClient } from '@oprail/sdk';

// Staging: adiri. Production: either enabled network.
const network: 'adiri' | 'mainnet' = 'adiri';
const origin = process.env.OPRAIL_API_ORIGIN!.replace(/\/+$/, '');
const client = new OpRailClient({
  apiKey: process.env.OPRAIL_API_KEY!,
  baseUrl: `${origin}/${network}`,
  enableRetries: false
});
const block = await client.blocks.getLatest();
console.log(block.number);

Use npm install @oprail/sdk. Select mainnet only with a configured production API origin and its account key.

.NET SDK · Explicit network selection
using OpRail.Sdk;

// Staging: adiri. Mainnet requires enabled production.
var network = "adiri";
var origin = Environment.GetEnvironmentVariable(
    "OPRAIL_API_ORIGIN")!.TrimEnd('/');
using var client = new OpRailClient(
    new Uri($"{origin}/{network}/"),
    Environment.GetEnvironmentVariable("OPRAIL_API_KEY")!);
var block = await client.GetLatestBlockAsync();
Console.WriteLine(block.Number);

Use dotnet add package OpRail.Sdk. The trailing network slash is part of the SDK base URL.

These examples use the RPC methods in the published SDKs. SDK 0.2.0 includes indexed-history helpers, available with the enabled Adiri staging API. Mainnet history requires separate activation. Historical-data guide →

ROOM TO BUILD. ROOM TO GROW.

Start free. Scale with your application.

Compare all plans →

Free

$0 / month

100,000 requests/month
5 requests/second

Shared across your account keys

Choose Free →

Starter

$49 / month

2,000,000 requests/month
50 requests/second

Shared across your account keys

Coming after beta

Pro

$199 / month

15,000,000 requests/month
200 requests/second

Shared across your account keys

Coming after beta

Enterprise

Let's talk

Discuss capacity, support and your integration requirements.

Custom capacity is subject to availability and agreement.

Coming after beta

USD monthly pricing · No automatic overage charges · Webhooks are not included. Read usage and billing details.

YOUR NEXT BUILD STARTS HERE

Make your first Telcoin API request.

Create a free account →
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.