Latest Block Number

Table function

The eth_latest_block_rpc table provides the latest block number of EVM chains.

Inputs

Args
Types
Info

rpc_url

VARCHAR

URL of the Ethereum node

Ouputs

Column Name
Type
Description

number

BIGINT

The latest block number.

Examples

D set variable eth_url = 'https://eth-mainnet.g.alchemy.com/v2/{API_KEY}';
D select * from eth_latest_block_rpc(getvariable('eth_url'));
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ latest_block β”‚
β”‚    int64     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚     21623511 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Dependent RPC Method

  • eth_blockNumber

Last updated