curl --request POST \
--url https://ronin-mainnet.core.chainstack.com/3997273fc956a67dc6982384500e669e \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getBlockByNumber",
"params": [
"latest",
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_getBlockByNumber",
"params": [
"latest",
true
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": {}
}
blockNumber
— the number of the block. It can be a hexadecimal value or a predefined tag such as latest
, earliest
, or pending
.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_getBlockByNumber
method is useful for applications that need to retrieve information about blocks at specific points in the blockchain. For instance, a financial application might use this method to analyze transactions within a particular block to audit or reconcile financial records.Details of the block with the given number
The response is of type object
.