⟠
Ethereum
Query Ethereum blockchain data from our own node
GET
/api/v1/balance/:chainId/:addressGet native token balance for an address on any EVM chain
Parameters
chainIdnumberrequired
Chain ID (1 = Ethereum, 109 = Shibarium, etc.)
addressstringrequired
Wallet address (0x...)
Example Request
curl "http://51.79.68.225:4000/api/v1/balance/1/0x742d35Cc6634C0532925a3b844Bc454e4438f44e"Example Response
{
"success": true,
"data": {
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"chainId": "1",
"balance": "0x65eb8e7985e15a96abd",
"balanceFormatted": "30081.516625699027"
}
}GET
/api/v1/gas-price/:chainIdGet current gas price for an EVM chain
Parameters
chainIdnumberrequired
Chain ID (1 = Ethereum, 109 = Shibarium)
Example Request
curl "http://51.79.68.225:4000/api/v1/gas-price/1"Example Response
{
"success": true,
"data": {
"chainId": "1",
"gasPrice": "0x51616f8",
"gasPriceGwei": "0.085333752"
}
}GET
/api/v1/block/:chainId/:blockNumberGet block data by number or "latest"
Parameters
chainIdnumberrequired
Chain ID
blockNumberstringrequired
Block number or "latest"
Example Request
curl "http://51.79.68.225:4000/api/v1/block/1/latest"Example Response
{
"success": true,
"data": {
"number": "0x...",
"hash": "0x...",
"timestamp": "0x...",
"transactions": [...]
}
}GET
/api/v1/transaction/:chainId/:txHashGet transaction details by hash
Parameters
chainIdnumberrequired
Chain ID
txHashstringrequired
Transaction hash
Example Request
curl "http://51.79.68.225:4000/api/v1/transaction/1/0x..."Example Response
{
"success": true,
"data": {
"hash": "0x...",
"from": "0x...",
"to": "0x...",
"value": "0x...",
"blockNumber": "0x..."
}
}POST
/api/v1/estimate-gas/:chainIdEstimate gas for a transaction
Example Request
curl -X POST "http://51.79.68.225:4000/api/v1/estimate-gas/1" \
-H "Content-Type: application/json" \
-d '{"from": "0x...", "to": "0x...", "data": "0x..."}'Example Response
{
"success": true,
"data": {
"gasEstimate": "21000"
}
}POST
/api/v1/logs/:chainIdFilter event logs by address and topics
Example Request
curl -X POST "http://51.79.68.225:4000/api/v1/logs/1" \
-H "Content-Type: application/json" \
-d '{"address": "0x...", "fromBlock": "latest", "toBlock": "latest"}'Example Response
{
"success": true,
"data": {
"logs": [...]
}
}