Package Logo
bl2
bl2@v0.1.0
Total Downloads
13
Published
4 hours ago
Publisher
User Avatar miaoxn

Readme

bl2 Substreams modules

This package was initialized via substreams init, using the evm-events-calls template.

Usage

substreams build
substreams auth
substreams gui       			  # Get streaming!

Optionally, you can publish your Substreams to the Substreams Registry.

substreams registry login         # Login to substreams.dev
substreams registry publish       # Publish your Substreams to substreams.dev

Modules

All of these modules produce data filtered by these contracts:

  • bittdefi at 0x602e67eb2edb3693b2d2fae8f092199851204fc2

map_events_calls

This module gets you events and calls

map_events

This module gets you only events that matched.

map_calls

This module gets you only calls that matched.

Documentation

Modules

Maps icon
Maps

map
map_events

5dfdb3b830bb566792ef982c067d5196c119e762
map map_events (
blocksf.ethereum.type.v2.Block
)  -> contract.v1.Events
substreams gui bl2@v0.1.0 map_events

map
map_calls

ceae1b36c2b146bb7c00bce746f8ccd418e636ff
map map_calls (
)  -> contract.v1.Calls
substreams gui bl2@v0.1.0 map_calls

map
map_events_calls

f9d4731f4110f7aeffe8f383aa112e672f7e471c
substreams gui bl2@v0.1.0 map_events_calls

map
ethcommon:all_events

433686393b184c57628660f7dbe6cfed4d72a9e9
map ethcommon:all_events (
)  -> sf.substreams.ethereum.v1.Events

all_events gives you all the events in a block (from successful transactions), with basic block hash/number/timestamp and transaction hash

substreams gui bl2@v0.1.0 ethcommon:all_events

map
ethcommon:all_calls

24025f6e747a1e5fcee9a308f132a566d7a3e771
map ethcommon:all_calls (
)  -> sf.substreams.ethereum.v1.Calls

all_calls gives you all the calls in a block (including internal calls), with basic block hash/number/timestamp and transaction hash

substreams gui bl2@v0.1.0 ethcommon:all_calls
Block Indexes icon
Block Indexes

blockIndex
ethcommon:index_events

8375ddd2cb44363ab1691748ecb6303603f29568

index_events sets the following keys on the block:

  • Event signatures evt_sig:0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef (signature in hex, prefixed by 0x)
  • Event address evt_addr:0x0123456789abcdef0123456789abcdef01234567 (address in hex, prefixed by 0x)
substreams gui bl2@v0.1.0 ethcommon:index_events

blockIndex
ethcommon:index_calls

3905aca0b839f90a6e4a024f963c327839e71143

index_calls sets the following keys on the block:

  • Call contract call_to:0x0123456789abcdef0123456789abcdef01234567 (contract address in hex, prefixed by 0x)
  • Caller call_from:0x0123456789abcdef0123456789abcdef01234567 (caller address in hex, prefixed by 0x)
  • Call method call_method:0x01234567 (4 bytes of method signature in hex, prefixed by 0x)
substreams gui bl2@v0.1.0 ethcommon:index_calls
Protobuf

Protobuf Docs Explorer

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