curl --request POST \
--url https://ronin-mainnet.core.chainstack.com/3997273fc956a67dc6982384500e669e \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getBlockByHash",
"params": [
"0x66d67565dc84eb6e579ebe142683e4338498653ff6b7a6e2724e80a73aca4f20",
true
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": {}
}
curl --request POST \
--url https://ronin-mainnet.core.chainstack.com/3997273fc956a67dc6982384500e669e \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getBlockByHash",
"params": [
"0x66d67565dc84eb6e579ebe142683e4338498653ff6b7a6e2724e80a73aca4f20",
true
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": {}
}
blockHash
— the hash of the block.fullTransactionObjects
— if set to true
, returns the full transaction objects; if false
, only the hashes of the transactions.result
— an object containing information about the block, such as the block number (number
), the hash of the block (hash
), the hash of the parent block (parentHash
), and, depending on the fullTransactionObjects
parameter, either a list of transaction hashes or a list of transaction objects.eth_getBlockByHash
method is useful for applications that need detailed information about specific blocks in the blockchain. For example, a blockchain explorer might use this method to display detailed information about a block, including its transactions, when a user searches for a block by its hash.Details of the block with the given hash
The response is of type object
.
Was this page helpful?