Skip to main content

eth_getBalance

Ethereum API

Returns the balance of the account of given address.

Params

(2)

1. Address (required)

string
Match pattern:
^0x[0-9,a-f,A-F]{40}$

2. Block (required)

(any of)
string
Match pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$

Result

(Balance)
string
Match pattern:
^0x([1-9a-f]+[0-9a-f]*|0)$

Params

Address

Block


Request

await window.ethereum.request({
"method": "eth_getBalance",
"params": [
null,
null
]
});