EVM
Archive
eth_getBalance
Summary: Get balance of an account
This request returns the balance in wei of the given account address/condition.
Parameters
address string
requiredA string that represents a 20-byte Linea address to check the balance of.
Pattern: ^0x[0-9a-fA-F]{40}$
block anyOf
requiredBlock number, block hash, or string tag.
Returns
The balance in wei, as a hexadecimal value.
eth_getBalanceResponse object
Customize request
Parameter
Value
Request
curl https://linea-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": [],
"id": 1
}'
Example response
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x1bcb27a395c3"
}