Understand the chain
Fetch native TEL balances, account nonces, gas prices, blocks, transactions and execution receipts.
OPRAIL FOR DEVELOPERS
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
Choose the network in your URL. Start with a simple read.
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
Fetch native TEL balances, account nonces, gas prices, blocks, transactions and execution receipts.
Sign in your own application and submit the bytes through the API. Your private keys stay with you.
Create, copy, rotate and revoke API keys. See your shared monthly allowance and usage in the portal.
MADE FOR DEVELOPERS
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 →Keep the API key on your backend. Use the API origin for your environment, then add /adiri or /mainnet.
/adiri/api/v1/blocks/latestStaging and configured production/mainnet/api/v1/blocks/latestProduction only, after activationStaging 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 --fail-with-body \
"$OPRAIL_API_ORIGIN/adiri/api/v1/blocks/latest" \
-H "X-API-Key: $OPRAIL_API_KEY"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"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.
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.
$0 / month
100,000 requests/month
5 requests/second
Shared across your account keys
Choose Free →$49 / month
2,000,000 requests/month
50 requests/second
Shared across your account keys
Coming after beta
$199 / month
15,000,000 requests/month
200 requests/second
Shared across your account keys
Coming after beta
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