GET STARTED / 01
Your first Telcoin API request.
Create an account, generate a key and read the latest Adiri block. The Free plan needs no payment card.
1. Create your account and key
Start with a Free account, sign in to the portal and open API keys. Create a key, give it a useful name, and copy it for your backend application.
Use a key from the same environment as the API origin. Keep it in your server environment or secret store; account keys belong on your backend, outside public frontend code and source control.
2. Set your API origin
The origin is the API host without a network path or trailing slash. These shell commands read your key without displaying it.
export OPRAIL_API_ORIGIN="https://api.oprail.com"
read -rs OPRAIL_API_KEY
export OPRAIL_API_KEY
The configured example origin is https://api.oprail.com. A production integration must use its own approved API origin and an account key issued in that environment.
3. Make an Adiri read
curl --fail-with-body \
"$OPRAIL_API_ORIGIN/adiri/api/v1/blocks/latest" \
-H "X-API-Key: $OPRAIL_API_KEY"
A successful response contains the block's number, hash and metadata. Values such as balances and gas quantities stay exact decimal strings; use integer-safe arithmetic in your application.
Choose the network in the URL. Staging supports /adiri only. /mainnet requires separate production activation and never falls back to Adiri.
4. Check your usage
Open the portal's usage view. Each admitted operation uses one shared account credit, including an operation that later fails at its data source. See errors and usage for rejection and timeout behavior.