Sahyadri Documentation
Powerful, real-time endpoints to integrate Sahyadri blockchain data into your applications, exchanges, and wallets.
Connection Type: Direct JSON-RPC (Decentralized)
No middleman server. Your application connects directly to any Sahyadri Node via JSON-RPC protocol.
Local Development
http://localhost:27112Production (Mainnet)
https://node.sahyadri.io:27112How to Make JSON-RPC Requests
async function callNode(method, params = []) {
const response = await fetch('http://localhost:27112', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
jsonrpc: '2.0',
id: Date.now(),
method: method,
params: params
})
});
const data = await response.json();
return data.result;
}POST
getBlockChainInfo
Network StatsReturns comprehensive statistics about the Sahyadri blockchain network.
{
"jsonrpc": "2.0", "id": 1,
"method": "getBlockChainInfo",
"params": []
}POST
getBlock / getBlockByHeight
Block DataRetrieve full details of a specific block using either its hash or height.
// By Block Hash:
{ "jsonrpc": "2.0", "id": 1, "method": "getBlock",
"params": [{ "hash": "0bea8500abc..." }] }
// By Block Height:
{ "jsonrpc": "2.0", "id": 1, "method": "getBlockByHeight",
"params": [{ "height": 15678 }] }POST
getTransaction
TX DetailsGet complete transaction details by ID/hash.
{ "jsonrpc": "2.0", "id": 1, "method": "getTransaction",
"params": [{ "id": "8f3a9b2cdef..." }] }POST
getAddress / getBalance
WalletQuery wallet address balance and basic information.
{ "jsonrpc": "2.0", "id": 1, "method": "getAddress",
"params": [{ "address": "csm1sxh5at56p0c6s9gwtj0mumwcly258gexk5zxp0xvj6" }] }POST
getBlocks
ListFetch the most recently mined blocks on the network.
{ "jsonrpc": "2.0", "id": 1, "method": "getBlocks",
"params": [{ "count": 20 }] }POST
submitTransaction
Write OpSubmit a signed transaction to the network.
{ "jsonrpc": "2.0", "id": 1, "method": "submitTransaction",
"params": [{ "rawTx": "01000000..." }] }Available Node Ports
| Port | Protocol | Use Case |
|---|---|---|
27110 | WebSocket RPC (wRPC) | Real-time subscriptions |
27112 | JSON-RPC HTTP | Primary API |
27113 | gRPC Protobuf | High-performance apps |