# eth_blockNumber

> Read the latest Ethereum block number through a GetBlock JSON-RPC endpoint.

## Request

Set `GETBLOCK_ENDPOINT` to the complete URL of your [Ethereum endpoint](/getting-started/endpoint-setup/creating-node-endpoints/). The method takes an empty parameter list.

```bash
curl --fail-with-body "$GETBLOCK_ENDPOINT" \
  -H 'Content-Type: application/json' \
  --data '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'
```

## Response

```json
{"jsonrpc":"2.0","id":1,"result":"0x1449641"}
```

The result is a hexadecimal block number. Its value changes as the chain advances. Convert it to base ten before comparing it with a decimal height from a block explorer.
