TriportRPC

eth_getBlockByHash

Base / https://triport.io/r/{key}/rpc/base

Minimum tier: Free

Base method guide

Last updated:

No accepted semantic runtime observation for this exact method/profile. See source_refs/provider_observations; union membership is not support. Availability is the frozen baseline, not deployed readiness. documented is the contract floor; evidence_kind retains unknown/source_summary.

Parameters

eth_getBlockByHash parameters
NameTypeRequiredDescription
blockHashHashYes
fullTransactionsBooleanYes

Returns

eth_getBlockByHash return value
FieldType
blockBlockOrNull

Examples

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

Usage

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

FAQ

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