Ethereum API Docs by GetBlock
  1. eth namespace
Ethereum API Docs by GetBlock
  • eth namespace
    • eth_call
      POST
    • eth_getBlockByNumber
      POST
    • eth_chainId
      POST
    • eth_syncing
      POST
    • eth_getBlockNumber
      POST
    • eth_getBalance
      POST
    • eth_getBlockByHash
      POST
    • eth_getTransactionCount
      POST
    • eth_estimateGas
      POST
    • eth_gasPrice
      POST
    • eth_getTransactionByHash
      POST
    • eth_getTransactionByBlockNumberAndIndex
      POST
    • eth_getTransactionReceipt
      POST
    • eth_feeHistory
      POST
    • eth_estimateGas
      POST
    • eth_getCode
      POST
    • eth_getLogs
      POST
    • eth_getCode
      POST
    • eth_sendRawTransaction
      POST
  • net namespace
    • net_listening
      POST
    • net_peerCount
      POST
    • net_version
      POST
  • web3 namespace
    • web3_clientVersion
      POST
    • web3_sha3
      POST
  1. eth namespace

eth_getBlockByNumber

POST
{{GETBLOCK_URL}}
Retrieve detailed information about a specific Ethereum block by its block number using eth_getBlockByNumber. Essential for interacting with the Ethereum blockchain via JSON-RPC.
This method works by connecting to the Ethereum network via JSON-RPC, a remote procedure call (RPC) protocol used for communication between clients and servers. Core API endpoints provide the functionality to interact with the blockchain, and eth_getBlockByNumber is one of the most commonly used methods within these endpoints.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '' \
--header 'Content-Type: application/json' \
--data-raw '{
	"id": "1",
	"jsonrpc": "2.0",
	"method": "eth_getBlockByNumber",
	"params": ["latest", false]
}'
Response Response Example
{}

Request

Body Params application/json
id
string 
required
ID
jsonrpc
string 
required
method
string 
required
params
array [oneOf] 
required
string 
optional
boolean 
optional
Examples

Responses

🟢200Success
application/json
Body
object {0}
Modified at 2025-06-04 20:28:44
Previous
eth_call
Next
eth_chainId
Built with