Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By pinax-network Verified OrgApache-2.0In 1 marketplace
Extended EVM Substreams skills: balance-state packages, roadmap issue workflow, pinned-source research, offline evidence replay and storage-layout verification.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
RPC-free EVM balances from Firehose Extended blocks, ready for ClickHouse. Two packages, native and ERC-20, each with its own release and database. The tables are the substreams-evm ClickHouse tables, so the Token API reads them unchanged.
| Package | Source | Emits | ClickHouse tables |
|---|---|---|---|
| evm-balances-native | native/balances | The native balance of every account whose balance changed in the block, from the genesis allocations on | native_balances, blocks, historical_native_balances |
| evm-balances-erc20 | erc20/balances | ERC-20 balances inferred per block from Transfer flows and persisted storage, for every contract | erc20_balances, blocks, historical_erc20_balances |
Each package is one spkg with two modules:
map_events: the balances as protobuf (evm.balances.v1). The same
projection is a plain Rust function (native_balances::project,
erc20_balances::run) for programs that read Extended blocks without the
Substreams runtime. ERC-20 v0.7.4 keeps erc20_balances::run unchanged
and adds erc20_balances::run_sized, which also takes the byte length of
the delivered block (Any.value), as map_events does.db_out: the same balances as ClickHouse rows. The spkg embeds the
schema, so the SQL sink needs nothing else.No RPC, no params, no token lists. A block without the required Extended data is rejected; native also stops on a block it cannot explain instead of writing a guess, while ERC-20 drops the rows it doubts and goes on.
Download a package from Releases
(tags evm-balances-native-v<version> and evm-balances-erc20-v<version>),
then set up a database for it and run the sink:
substreams-sink-sql setup "$SUBSTREAMS_SINK_DSN" evm-balances-native-v<version>.spkg
substreams-sink-sql run "$SUBSTREAMS_SINK_DSN" evm-balances-native-v<version>.spkg <start-block>: \
-e bsc.substreams.pinax.network:443 --undo-buffer-size=5
Use one database per package and network, named
<network>:evm-balances-native@<version> and
<network>:evm-balances-erc20@<version>. The supported sink, the Token API
live-sink settings, reorgs and the cutover from the RPC-era database are in
docs/clickhouse.md.
Neither package is live-qualified yet. BSC comes first (#124), then the other Extended EVM networks (#8). From native v0.7.8 and ERC-20 v0.7.3, both packages support Ethereum, BSC, Polygon, Arbitrum One, Base, Optimism, Unichain and HyperEVM; Optimism and Arbitrum One start at the first whole 1,000-block segment of their Extended blocks (start blocks). ERC-20 balances are inferred: their coverage and precision are measured, not guaranteed. The current state is in docs/handoff.md, and the plan in the roadmap.
*/balance-state). They emit the companion
evm.balance_state.v1 (contract) and are
not part of the ClickHouse output.proto/ (the protobuf types), common/persist/ (which state
changes of an Extended block persisted) and common/epochs/.Related repositories:
substreams-evm-dex (swaps and pool state),
substreams-evm-transfers (transfer events) and
substreams-evm (the RPC-based modules).
This repository was named substreams-evm-extended until 2026-10-13.
cargo test --workspace --locked
make -C native/balances build schema
make -C erc20/balances build schema
Committed spkgs come from CI's Linux build, not from a local make pack.
To compare a package with the chain, stream recent blocks and check every
emitted balance against balanceOf (ERC-20) or eth_getBalance (native) at
the same block. It needs Bun, the substreams CLI and
SUBSTREAMS_API_KEY; the RPC defaults to Pinax's for the chain:
bun scripts/check-live-balances.ts --chain eth --package erc20/balances/substreams.yaml --blocks 100
bun scripts/check-live-balances.ts --chain bsc --package spkg/evm-balances-native-v0.7.5.spkg --blocks 300 --out report.json
npx claudepluginhub pinax-network/substreams-evm-balances --plugin substreams-evm-extendedBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground