Ethereum API
Multichain API
eth_getBalance
Summary: Returns the balance of the account of given address.
Parameters
Address string
hex encoded address
Pattern: ^0x[0-9a-fA-F]{40}$
Block anyOf
Block number, tag, or block hash
Returns
Balance string
hex encoded unsigned integer
Pattern: ^0x([1-9a-f]+[0-9a-f]*|0)$
Customize request
Parameter
Value
Connect your MetaMask wallet to run requests successfully.
Request
await window.ethereum.request({
"method": "eth_getBalance",
"params": [
"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73",
"latest"
],
});
Example response
"0x1cfe56f3795885980000"