GET STARTED / NETWORKS
Choose your network explicitly.
Use the same API key with a network-prefixed URL. Keep the API origin, network and account environment consistent.
| Network | Path prefix | Availability |
|---|---|---|
| Adiri · Testnet | /adiri | Staging; production when configured |
| Mainnet | /mainnet | Production only, after separate activation |
Adiri uses chain ID 2017. Mainnet is configured separately and disabled during the initial Free beta. Requests while disabled return HTTP 400 with mainnet_unavailable before using any allowance. A disabled or unknown network fails explicitly; a client request never silently switches networks. The legacy unprefixed API uses its configured default network; use explicit prefixes for new integrations.
Authenticate each request
Send your account key in X-API-Key. The SDKs add that header for you. Create, copy, rotate and revoke keys in the portal; keep the key in your backend environment.
curl --fail-with-body \
"$OPRAIL_API_ORIGIN/adiri/api/v1/blocks/latest" \
-H "X-API-Key: $OPRAIL_API_KEY"
Mainnet on an enabled production environment
Set OPRAIL_PRODUCTION_API_ORIGIN to the approved production API origin and use a key from that production account. This example describes the route; it does not enable mainnet.
curl --fail-with-body \
"$OPRAIL_PRODUCTION_API_ORIGIN/mainnet/api/v1/blocks/latest" \
-H "X-API-Key: $OPRAIL_API_KEY"
Both networks share your allowance
Within an environment, all account keys and enabled networks share one monthly allowance and rate limit. 500 Adiri calls + 500 mainnet calls = 1,000 used requests. Switching network or key does not create another allowance. Staging and production are separate environments with their own accounts and keys.
Set an SDK base URL
TypeScript uses an origin plus network, such as https://YOUR_API_ORIGIN/adiri. The .NET client uses the trailing network slash: https://YOUR_API_ORIGIN/adiri/. See the complete SDK examples.
Read and write availability differ. Adiri staging currently supports reads; transaction submission is disabled there. Production mainnet and signed writes require their own activation. SDKs accept already-signed bytes and do not hold your wallet's private keys.