Skip to content

Compute Units

Every request costs Compute Units (CU) — a weight that reflects how much work the method puts on a node. Light lookups cost 1 CU, heavy scans up to 75. Your plan sets the price per CU (Rate limits); the free plan meters usage but bills nothing.

How metering works

  • Weight is per (chain, method); any method not listed below costs 1 CU.
  • Cached responses (X-Cache: HIT) are still metered — the weight pays for the API call, not only node I/O.
  • Batch requests are metered per inner call.
  • Each project has a daily CU quota (default 100,000). Exceeding it returns JSON-RPC -32005 (compute unit quota exceeded) until the 24-hour window rolls over.

Method weights

Ethereum (and EVM chains)

MethodCU
eth_chainId, net_version, web3_clientVersion0
eth_blockNumber1
eth_getBalance, eth_getTransactionCount5
eth_getTransactionByHash, eth_getTransactionReceipt5
eth_getBlockByNumber, eth_getBlockByHash10
eth_getCode, eth_getStorageAt10
eth_call, eth_estimateGas15
eth_sendRawTransaction20
eth_getLogs75
anything else1

Bitcoin (and bitcoind-family chains)

MethodCU
getblockcount, getblockhash, getnetworkinfo1
getmempoolinfo5
getblock, getrawtransaction10
sendrawtransaction20
anything else1

TRON

MethodCU
getnowblock1
gettransactionbyid, getaccount5
getblockbynum10
triggersmartcontract, broadcasttransaction20
anything else1

Reading your usage

Per project, last 24 h / day / month:

bash
curl "https://api.lab.au.ro/api/v1/projects/$PROJECT_ID/usage?period=day" \
  -H "Authorization: Bearer $TOKEN"
json
{
  "project_id": "1ea310a1-...",
  "total_cu": 2,
  "request_count": 2,
  "period": "24h",
  "by_chain": {
    "btc": { "cu": 1, "request_count": 1 },
    "eth": { "cu": 1, "request_count": 1 }
  }
}

period accepts day (default 24 h) and month (last 30 days). The dashboard's Usage page renders the same data as charts, including a per-method breakdown.

Budgeting tips

  • eth_getLogs at 75 CU dominates most EVM bills — narrow block ranges and prefer event-indexing services for large scans.
  • Static lookups (eth_chainId, net_version) are free (0 CU) — call away.
  • Cached short-TTL methods (eth_blockNumber, eth_gasPrice) are cheap and fast; don't build your own cache for them.