Package Logo
chain_streams
chain_streams@v1.0.0
github Repository
your-org/trade
Total Downloads
2
Published
1 months ago
Publisher
User Avatar johnangwin
github Repository
your-org/trade
Total Downloads
2
Published
1 months ago
Publisher
User Avatar johnangwin

Readme

Documentation

Modules

Maps icon
Maps

map
filter_blocks_by_contracts

1a42685f3b893f87971e36c3fc82abfdee830f2e
map filter_blocks_by_contracts (
paramsstring
blocksf.ethereum.type.v2.Block
)  -> sf.ethereum.type.v2.Block

Filters blocks containing transactions to/from specified contract addresses. Returns standard sf.ethereum.type.v2.Block with only relevant transactions.

Runtime params format: { "contracts": ["0x1234...", "0x5678..."], // Contract addresses to monitor "includeInternal": false // Include internal transactions (optional) }

Note: Start block is specified in the substreams request, not in params.

The filtered block contains all relevant transactions in block.transactions, so individual transaction extraction is not needed.

TODO: This module needs to be implemented in Rust as part of the substreams processing logic. The current manifest is for testing the build pipeline.

substreams gui chain-streams@v1.0.0 filter_blocks_by_contracts
Protobuf

Protobuf Docs Explorer

sf.ethereum.transform.v1
sf.ethereum.substreams.v1
sf.ethereum.type.v2