Skip to main content

Parameters

chainId
string
default:"1313161554"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"eth_getBlockByHash"
required
JSON-RPC method name.
params
object
required
Parameters for eth_getBlockByHash: [blockHash, fullTransactions].Positional parameters for eth_getBlockByHash:
  • params[0]: 32 Bytes - hash of the block where this transaction was included. Null when pending.
  • params[1]: If true, returns the full transaction objects. If false, returns only the transaction hashes.

Returns

result
object
A block object returned by Ethereum RPC. Null if no block is found.