Bware Docs
Home
Twitter
Linkedin
Telegram
Search…
About Bware Labs Decentralized API
API Docs
Ethereum API
RPC
eth_getBlockByNumber method
eth_getBalance method
eth_blockNumber method
eth_syncing method
Websocket API
Binance Smart Chain API
Avalanche API
Moonbeam/Moonriver API
Astar/Shiden APIs
Fantom API
Polkadot API
Elrond API
Tutorials
Using Bware Labs Platform
Using Bware Labs Endpoint in PolkadotJs
Using Bware Labs Endpoint in Metamask
Using a Bware Labs endpoint in code
Powered By
GitBook
eth_getBalance method
Returns the account balance for a given address
Parameters
1.
DATA
, 20 Bytes - address to check for the balance.
2.
QUANTITY|TAG
- integer block number, or the string
"latest"
,
"earliest"
or
"pending"
, see the
default block parameter
Response
The balance of the given account
Example
1
// Request
2
curl -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_getBalance","params":["0x0000000000000000000000000000000000001000", "0x186A0"] ,"id":32}' https://eth-api.bwarelabs.com/<your-endpoint-id>
3
4
// Response
5
{
6
"jsonrpc": "2.0",
7
"id": 32,
8
"result": "0xb284fbfd108db80"
9
}
Copied!
Previous
eth_getBlockByNumber method
Next
eth_blockNumber method
Last modified
1yr ago
Copy link
Contents
Parameters
Response
Example