This is the official public API for Torram Chain. This API
allows you to query Torram blockchain data in real-time.
It is currently running on testnet and intended for
testing and development only.
100 requests/min per IP@torrambuilders.
Base URL for all API endpoints:
https://api.torramexplorer.xyz
| Method | Endpoint | Description | Example |
|---|---|---|---|
| GET | /network/status | Get network status (RPC) |
curl https://api.torramexplorer.xyz/network/status
|
| Method | Endpoint | Description | Example |
|---|---|---|---|
| GET | /blocks/latest | Get the latest block |
curl https://api.torramexplorer.xyz/blocks/latest
|
| GET | /api/blocks/:height | Get block by height |
curl https://api.torramexplorer.xyz/api/blocks/100
|
| GET | /api/blocks/range | Get a range of blocks |
curl https://api.torramexplorer.xyz/api/blocks/range?minHeight=100&maxHeight=120
|
| Method | Endpoint | Description | Example |
|---|---|---|---|
| GET | /transactions/single/:hash | Get transaction by hash |
curl https://api.torramexplorer.xyz/transactions/ABC123DEF456
|
| GET | /transactions/height/:height | Get transactions at a block height |
curl https://api.torramexplorer.xyz/transactions/height/100
|
| GET | /transactions/last-fifty | Get last 50 transactions up to a height |
curl https://api.torramexplorer.xyz/transactions/last-fifty?height=500
|
| Method | Endpoint | Description | Example |
|---|---|---|---|
| GET | /prices/latest | Get latest price |
curl https://api.torramexplorer.xyz/prices/latest
|
| GET | /prices/last100 | Get last 100 prices |
curl https://api.torramexplorer.xyz/prices/last100
|
Get network status (RPC)
curl https://api.torramexplorer.xyz/network/status
Get the latest block
curl https://api.torramexplorer.xyz/blocks/latest
Get block by height
curl https://api.torramexplorer.xyz/api/blocks/100
Get a range of blocks
curl https://api.torramexplorer.xyz/api/blocks/range?minHeight=100&maxHeight=120
Get transaction by hash
curl https://api.torramexplorer.xyz/transactions/ABC123DEF456
Get transactions at a block height
curl https://api.torramexplorer.xyz/transactions/height/100
Get last 50 transactions up to a height
curl https://api.torramexplorer.xyz/transactions/last-fifty?height=500
Get latest price
curl https://api.torramexplorer.xyz/prices/latest
Get last 100 prices
curl https://api.torramexplorer.xyz/prices/last100
// Using fetch
const response = await fetch('https://api.torramexplorer.xyz/blocks/latest');
const data = await response.json();
console.log(data);
// Using axios
import axios from 'axios';
const response = await axios.get('https://api.torramexplorer.xyz/blocks/latest');
console.log(response.data);
import requests
response = requests.get('https://api.torramexplorer.xyz/blocks/latest')
data = response.json()
print(data)
curl -X GET https://api.torramexplorer.xyz/blocks/latest | json_pp