eth_blockNumber

The method is used to get the recent block number

Request
Examples
curl --request POST \
     --url https://rpc.xone.org \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_blockNumber"
}
'
Response
200 OK
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xfd2fdb"
}

Request params

NameTypeDescription
idintegerRequest identifier
jsonrpcstringJSON-RPC version
methodstringAPI method name
ParametersThis method does not accept any parameters. 

Response

200
Returns a list of log objects or an empty list if there have been no updates since the previous query.
NameTypeDescription
Parametersobject 
idinteger
jsonrpcstring
resultarray_of_stringsThe latest block number, returned as a hexadecimal string.