Current offer: every account has 1 reset chance(s) to top its balance back up to 30,000,000 CU in one click. New accounts start with 30,000,000 CU. Learn more →
JSON-RPCMethods

eth_getBlockByNumber: parameters, returns and CU

Return a block by number, optionally with full transactions. See parameters, return value, CU metering and supported chains for this method.

Summary

Return a block by its number, optionally with full transaction objects.

Compute Units (CU) and Pricing

CU per call

5 CU

Price per 1M calls (USD)

$0.5

Parameters

ParameterTypeDescription
blockParameterQUANTITY|TAGBlock number or tag: latest, earliest, pending, safe or finalized.
fullTransactionsbooleantrue returns full transaction objects; false returns only the list of transaction hashes.

Returns

  • Type: OBJECT|NULL
  • Description: Block object with header fields and a transaction list; null when the block is not found.

Notes

The blocks behind the latest, pending, safe and finalized tags change as the chain advances.

Request Example

curl -X POST "https://dev-api.blockvectra.network/v1/robinhood_mainnet" \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: <api_key>' \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_getBlockByNumber",
    "params": [
      "latest",
      false
    ],
    "id": 1
  }'

Supported Chains

Supported chains:

  • EthereumBetaeth_mainnet
  • HyperEVMhyperevm_mainnet
  • Robinhood Chainrobinhood_mainnet