eth_getBalance

Returns the balance of given account address in wei.

📘

Supported on Fantom (mainnet) only.

Parameters

  • address- string - The address (20 bytes) to check for balance
  • blockNumber/tag - string - The block number in hexadecimal format or the string latest, earliest, pending, safe or finalized

Returns

  • result- The ETH balance of the specified address in hexadecimal value, measured in wei

API Endpoint

The format of a Fantom API endpoint is
https://open-platform.nodereal.io/{{apiKey}}/fantom/

Here is an example:
https://open-platform.nodereal.io/4c0a1c23661a4e26bcbcwed461e34ea9/fantom/

Example

Request

curl https://open-platform.nodereal.io/{{apiKey}}/fantom/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_getBalance","params":["0x8D97689C9818892B700e27F316cc3E41e17fBeb9", "latest"],"id":1,"jsonrpc":"2.0"}'

Result