1
Call the API
This reads the native ETH balance of an address on Ethereum. Replace
YourApiKey with your key, then run it in your command line:chainid: selects the chain. E.g. 1 (Ethereum).moduleandaction: choose the endpoint. E.g. account and balance.address: the account you are querying. E.g. 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045.tag: the block to read the balance at. E.g. latest.apikey: your API key. Replace YourApiKey with your API key.
2
Read the response
status:1on success,0on error.message:OKon success,NOTOKon error.result: the data. Here, the balance in wei. Divide by 10^18 for ETH. On error,resultholds the cause. See Common error messages.
Keep your key secure
Your key counts against your rate limits, so treat it like a credential.- Store keys in environment variables or a secrets manager, not in source files.
- Rotate a key if it leaks: stop using the exposed key, remove it from your API dashboard, and create a new one there.
Rate Limits
The calls per second and daily limits for each plan.
Common Use Cases
Find the right endpoints for what you are building.