🔌 Torram Chain Public API (Testnet)

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.

⚠️ First Public API Test

Base URL for all API endpoints:

https://api.torramexplorer.xyz
        

Available Endpoints

🔹 Network

GET /network/status

Get network status (RPC)

curl https://api.torramexplorer.xyz/network/status
                

🔹 Blocks

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
                

🔹 Transactions

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
                

🔹 Prices

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
                

Usage Examples

JavaScript / Node.js

// 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);
            

Python

import requests

response = requests.get('https://api.torramexplorer.xyz/blocks/latest')
data = response.json()
print(data)
            

cURL

curl -X GET https://api.torramexplorer.xyz/blocks/latest | json_pp