Reth
reth_getBalanceChangesInBlock
Returns all native token (PLS) balance changes that occurred in a specific block.
Returns all native token (PLS) balance changes that occurred in a specific block. This includes changes from transactions, fees, and block rewards.
Parameters
| # | Type | Description |
|---|---|---|
| 1 | string | Block number (hex), block hash, or block tag ("latest", "earliest", "pending"). |
Returns
An object mapping each affected address to its balance change (hex-encoded wei). Only addresses whose balance changed in the block are included.
| Field | Type | Description |
|---|---|---|
address | string | The absolute balance change for that address (hex wei). |
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "reth_getBalanceChangesInBlock",
"params": ["0x100"],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"0xbb7b8287f3f0a933474a79eae42cbca977791171": "0x1a3736216f7d0f6000",
"0x28921e4e2c9d84f4c0f0c0ceb991f45751a0fe93": "0xabd8965c9ec448000"
}
}
TRY IT
Notes
- Useful for tracking PLS flows without parsing individual transaction traces.
- The returned values are absolute balance deltas — the net change for each address in that block.
- Works with any block from genesis to the latest block (full archive).
- More efficient than calling
debug_traceBlockByNumberwhen you only need balance changes.
