REFERENCE / REST v1
One API. Clear contracts.
Native blockchain reads, indexed historical data and guarded signed-byte submission. Authenticate customer requests with X-API-Key.
The tables and download use the reviewed public API schema shipped with this site. The download targets https://api.oprail.com/adiri; the live API schema reports that environment's available networks. See network selection before using production.
Live chain operations
| Method | Adiri path | Operation |
|---|---|---|
| GET | /adiri/api/v1/balances/{address} | Get an address's native TEL balance |
| GET | /adiri/api/v1/transactions/{txHash} | Look up a transaction by hash |
| GET | /adiri/api/v1/transactions/{txHash}/receipt | Get transaction execution status and logs |
| GET | /adiri/api/v1/blocks/{blockNumber} | Get a block by decimal height |
| GET | /adiri/api/v1/blocks/latest | Get the current latest block |
| POST | /adiri/api/v1/transactions/send | Broadcast a transaction signed by the caller |
| GET | /adiri/api/v1/gas-price | Get the current suggested gas price |
| GET | /adiri/api/v1/addresses/{address}/nonce | Get an address's mined transaction count |
Block reads accept includeTransactions=true. A transaction can be pending or mined; inclusion alone does not establish execution success. Check its receipt's status. A missing receipt returns receipt_unavailable.
Signed submission accepts bytes already signed by your application. It is gated per environment, does not retry or fail over automatically, and is disabled in staging. If a submission times out, reconcile its hash before considering a retry.
Indexed historical data
| Method | Adiri path | Operation |
|---|---|---|
| GET | /adiri/api/v1/history/status | Read indexed history coverage and source generation |
| GET | /adiri/api/v1/addresses/{address}/transactions | Page indexed address transactions within complete historical coverage |
| GET | /adiri/api/v1/addresses/{address}/transfers | Page successful native TEL and ERC20 event-shaped transfers |
| GET | /adiri/api/v1/logs | Page indexed raw logs for a contract and bounded block range |
Historical first pages require explicit inclusive block bounds. Continuation uses the returned opaque cursor. Read history coverage, filters and pagination before starting a backfill.
Exact values and empty results
Amounts, gas quantities and nonces are decimal strings. Use BigInt or BigInteger for base-unit arithmetic. Pending fields and contract-creation recipients can be null. An empty covered history page is valid; unavailable coverage and unsupported datasets are explicit errors.