klay_getHeaderByNumber

Returns information about a header by number. This API works only on RPC call, not on JavaScript console.

Parameters

TypeDescription

QUANTITY | TAGA

Integer or hexadecimal block number, or the string "earliest", "l

Return Value

See Klaytn Docs

Example

// Request
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"klay_getHeaderByNumber","params":["0x1b4"],"id":1}' http://klaytn.blockpi.network/v1/rpc/your-api-key
// Result
{