TriportRPC

eth_getBlockByNumber

Robinhood Chain / https://triport.io/rpc/robinhood

Minimum tier: Free

Robinhood Chain method guide

Last updated:

Measured OK on 8 host(s) in robinhood-2026-09-07-perhost.json. For pending, the response is an in-flight block and hash may be null or change; it is not finality.

Parameters

eth_getBlockByNumber parameters
NameTypeRequiredDescription
blockBlockTagYes
fullTransactionsbooleanYes

Returns

eth_getBlockByNumber return value
FieldType
resultobject

Examples

curl https://triport.io/rpc/robinhood \
  -X POST -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <api-key>' \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_getBlockByNumber","params":["<block>","<fullTransactions>"]}'
const res = await fetch("https://triport.io/rpc/robinhood", {
  method: "POST",
  headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
  body: JSON.stringify({
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getBlockByNumber",
  "params": [
    "<block>",
    "<fullTransactions>"
  ]
}),
});
const data = await res.json();
import requests
resp = requests.post(
    "https://triport.io/rpc/robinhood",
    headers={"Authorization": "Bearer <api-key>"},
    json={"jsonrpc":"2.0","id":1,"method":"eth_getBlockByNumber","params":["<block>","<fullTransactions>"]},
)
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Chain: Robinhood Chain.
  3. Clusters: mainnet.
  4. Credit cost: 1 per call.

FAQ

What does eth_getBlockByNumber do?
Return a block by number or tag.
How many credits does eth_getBlockByNumber cost?
eth_getBlockByNumber costs 1 credit(s) per call on Triport by default.
Is eth_getBlockByNumber available over WebSocket?
eth_getBlockByNumber is an HTTP JSON-RPC method.