eth
eth_getBalance
Returns the PLS balance of the specified address at a given block.
Returns the PLS balance of the specified address at a given block.
Parameters
| # | Type | Description |
|---|---|---|
| 1 | string | The address to check the balance of (20 bytes). |
| 2 | string | Block number as a hex string, or a block tag ("latest", "earliest", "pending"). |
Returns
string -- The balance in wei as a hexadecimal string.
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": ["0x3693693693693693693693693693693693693693", "latest"],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x2974d4c89a8b3b326a5af80000"
}
TRY IT
Notes
- The result is denominated in wei (1 PLS = 10^18 wei). To convert to PLS, divide the decimal value by 10^18.
- As a full archive node, this endpoint supports querying balances at any historical block number, not just
"latest". - Use a specific hex block number (e.g.,
"0x100000") to query the balance at that exact point in chain history. - The address
0x3693693693693693693693693693693693693693is the PulseChain burn address. The burn address balance changes over time as tokens are burned.
