API Documentation

Complete reference for all LydianTek Blockchain Data Service endpoints

← Back to Home

Ethereum

Query Ethereum blockchain data from our own node

GET/api/v1/balance/:chainId/:address

Get native token balance for an address on any EVM chain

Parameters

chainId
numberrequired

Chain ID (1 = Ethereum, 109 = Shibarium, etc.)

address
stringrequired

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/:chainId

Get current gas price for an EVM chain

Parameters

chainId
numberrequired

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/:blockNumber

Get block data by number or "latest"

Parameters

chainId
numberrequired

Chain ID

blockNumber
stringrequired

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/:txHash

Get transaction details by hash

Parameters

chainId
numberrequired

Chain ID

txHash
stringrequired

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/:chainId

Estimate 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/:chainId

Filter 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": [...]
  }
}

LydianTek Blockchain Data Service API v1.0 - Production Ready

Base URL: http://51.79.68.225:4000/api/v1