Get Balance


Returns the balance of given account address in the smallest unit.

There are two params

  • Address of wallet

  • latest which gets the latest balance

curl --location --request POST "localhost:9680/rpc" \
--header "Content-Type: application/json" \
--data-raw '{
      "method": "eth_getBalance",
      "params": ["0x638105AA1B69406560f6428aEFACe3DB9da83c64", "latest"]


Balance will be in hexadecimal. Once converted to decimal, the unit will be in wei.

For example, hexadecimal 0x236a4c456ef7c0 to base10 is 9968499999832000

Base10 9968499999832000 wei to ETH is 0.009968499999832 ETH


Last updated