eth_getBlockByNumber — Robinhood Chain JSON-RPC
Return a block by number or tag.
https://triport.io/rpc/robinhood- Network
- Robinhood Chain mainnet (chain ID 4663)
- Scope
- robinhood:rpc
- Auth
- x-token: $TRIPORT_API_KEY
- Rate limit
- robinhood_read_rpc - 15 / 20 / 100 / 250 RPS sustained · short burst 30 / 40 / 200 / 500 (free / basic / pro / business) (plan policy); enterprise unlimited; Burst capacity
Endpoint and plans: Robinhood Chain RPC endpoint.
eth_getBlockByNumber — return a block by number or tag. The published signature and response shape come from the measured Robinhood OpenRPC contract (chain ID 4663).
A block by number or tag, with or without full transactions. At the pending tag the block is a changing view: its hash can be null or change, and it is not finality. Unrecognized transaction types are preserved rather than rejected — L2 blob type 0x03 was not observed across 13,652 feed transactions in three windows, so this guide makes no blob-support claim either way.
Parameters
JSON-RPC params is a positional array.
blockBlockTagrequiredlatest, earliest, pending. safe and finalized are not part of this contract.fullTransactionsbooleanrequiredtrue returns full transaction objects, false only their hashes.Response
A measured response from Robinhood Chain mainnet.
Errors
See Robinhood errors. Invalid parameters return a JSON-RPC parameter error; authentication and rate-limit failures use the shared client error contract. Unknown failures are returned without an implicit retry.
Examples
const response = await fetch("https://triport.io/rpc/robinhood", {
method: "POST",
headers: { "x-token": process.env.TRIPORT_API_KEY, "Content-Type": "application/json" },
body: JSON.stringify({"jsonrpc":"2.0","id":1,"method":"eth_getBlockByNumber","params":["latest",false]}),
});
const payload = await response.json();Notes
- With the
pendingtag, the block is a right-now view. Its hash may be null or change, and the response is not finality.