Updated on 2023-12-06 GMT+08:00

eth_getBalance

Introduction

This API returns the balance of the given account address. It consumes 19 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}'