Standard API Quickstart
This quickstart shows how to make a first Standard API request over HTTPS using an Ethereum JSON-RPC method as a general example. Node API endpoints are chain-specific, so production requests must use the endpoint for the chain you want to query.
Prerequisites
Before you start, make sure you have:
- A W3api account with access to public Node API endpoints.
- A Node API HTTPS endpoint copied from the Web3 API platform for the selected chain.
- A terminal with
curl.
Copy Your HTTPS Endpoint
- Open the Web3 API platform.
- Select the project and blockchain network you want to use.
- Copy the network’s HTTPS endpoint.
- Store it as
YOUR_HTTPS_ENDPOINTin the examples below.
Make a Request with curl
Use eth_blockNumber to request the latest block number from an Ethereum-compatible endpoint:
A successful response returns the latest block number as a hexadecimal value:
Next Steps
The Standard API references are chain-specific. Select the one you’d like to interact with to view its method details:
