Retrieve the latest Ethereum mainnet block number through Infura's managed JSON-RPC endpoint.

API

What your agent can do

  • Retrieve the current block number.

    Via API.

Tasks depend on the interface and permissions.

Connection methods

Choose a route that fits your agent.

API connection
API path
https://mainnet.infura.io/v3/<YOUR-API-KEY>

Authentication
Replace `<YOUR-API-KEY>` with your own unique API key.

Documentation & experience

  • 1 connection path
View sources and checks
How documentation is checked