Skip to main content
Standard Ethereum JSON-RPC API

eth_getBalance

Returns the ETH balance of an address at a given block.

Parameters​

  • address: [required] 20-byte address.
  • blockParameter: [required] Hexadecimal block number, or latest, earliest, pending, finalized.

Returns​

Hexadecimal value of the balance in wei.

Example​

Request​

curl https://rpc.linea.build \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": [
"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"latest"
],
"id": 1
}'

Response​

{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1805af891ff10a"
}

Was this page helpful?