eth_getBalance
Introduction
This API returns the balance of the given account address. It consumes 23 CUs.
Parameter Description
Parameter |
Type |
Description |
---|---|---|
Address |
String |
The address to check for balance. |
Block number |
String |
A hexadecimal block number, or the string (earliest, latest, or pending). |
Return Value
A hexadecimal value of the current balance in the account at the given address, in wei.
Request
curl https://your-http-endpoint/v1/<API-KEY> \ -X POST \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"eth_getBalance","params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"],"id":1}'
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot