BlockPI Network
Search
⌃K

klay_blockNumber

Returns the number of most recent block.

Parameters

None

Return Value

Type
Description
QUANTITY
Integer of the current block number the client is on.

Example

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