Package Logo
unionbackend
unionbackend@v0.1.0
README

unionbackend Substreams modules

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

Usage

substreams build
substreams auth
substreams gui       			  # Get streaming!
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:

  • unionbackend at 0x031f0da3d62302fedb5f23a539fb0ded62b64352

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

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

map
map_calls

95e6c8afa63285bfe945bb8e13799b2de490fafe
map map_calls (
)  -> contract.v1.Calls
substreams gui unionbackend@v0.1.0 map_calls

map
map_events_calls

394266a4e591f60cfc45e75f3e78966c1b36aa96
substreams gui unionbackend@v0.1.0 map_events_calls

map
ethcommon:all_events

963652a247fd23d0823dde62d21ae54c783b6073
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 unionbackend@v0.1.0 ethcommon:all_events

map
ethcommon:all_calls

ba4f8e82a1fdc3ffbf060bed89482619bdc2a771
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 unionbackend@v0.1.0 ethcommon:all_calls

map
ethcommon:filtered_events

8fea38111c0a0111c18aa8a573a9d9a2369aa2f1
Default param : evt_sig:0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31

filtered_events reads from all_events and applies a filter on the event addresses and signatures. Supported operators are: logical or ||, logical and && and parenthesis: () Addresses to match must be written as 0x-prefixed hexadecimal, lowercase, prefixed by evt_addr: and signatures by evt_sig:. Example: (evt_addr:0x1234... || evt_addr:0x5678...) && evt_sig:0xdeadbeef...

substreams gui unionbackend@v0.1.0 ethcommon:filtered_events

map
ethcommon:filtered_calls

d655efe9beb681bed30a0e9183823dcb98344762
Default param : call_method:0xa9059cbb && call_to:0xdac17f958d2ee523a2206206994597c13d831ec7

filtered_calls reads from all_calls and applies a filter on the called contract, the caller and the method 4-bytes signature Supported operators are: logical or ||, logical and && and parenthesis: () Addresses to match must be written as 0x-prefixed hexadecimal, lowercase, prefixed by call_to: or call_from:, methods by call_method:. Example: (call_to:0x1234... || call_from:0x1234...) && call_method:0xdeadbeef...

substreams gui unionbackend@v0.1.0 ethcommon:filtered_calls

map
ethcommon:filtered_transactions

d6ccd50b8175be235cbf2f18c0ad7d2d41e913b6
map ethcommon:filtered_transactions (
paramsstring
)  -> sf.substreams.ethereum.v1.Transactions
Default param : evt_sig:0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31 || (call_method:0xa9059cbb && call_to:0xdac17f958d2ee523a2206206994597c13d831ec7)

filtered_transactions reads from ethereum blocks and applies a filter on the events (addresses and signatures) as well as calls (from, to and method). Supported operators are: logical or ||, logical and && and parenthesis: () Addresses and signatures to match must be written as 0x-prefixed hexadecimal, lowercase, prefixed by evt_addr:, evt_sig:, call_to:, call_from: or call_method:. Example: ((evt_addr:0x1234... || evt_addr:0x5678...) && evt_sig:0xdeadbeef...) || call_to:0x01010101...

substreams gui unionbackend@v0.1.0 ethcommon:filtered_transactions

map
ethcommon:filtered_events_and_calls

a0c728ef58e8dc842dc3a0f234cfc18bc8b3a2c7
Default param : evt_sig:0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31 || (call_method:0xa9059cbb && call_to:0xdac17f958d2ee523a2206206994597c13d831ec7)

filtered_events_and_calls reads from all_calls and all_events, then applies a filter to extract the items that interest you, based on called contract, caller, call method, event address and event signature. Supported operators are: logical or ||, logical and && and parenthesis: () Addresses and signatures to match must be written as 0x-prefixed hexadecimal, lowercase, prefixed by evt_addr:, evt_sig:, call_to:, call_from: or call_method:. Example: evt_sig:0x9bb8f83800000000000000000000000000000000000000000000000000000000 || (call_method:0xa9059cbb && call_to:0xdac17f958d2ee523a2206206994597c13d831ec7)

substreams gui unionbackend@v0.1.0 ethcommon:filtered_events_and_calls
Block Indexes icon
Block Indexes

blockIndex
ethcommon:index_events

87255243f80f5d4755cd826ec57bf70696a4d7b6

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 unionbackend@v0.1.0 ethcommon:index_events

blockIndex
ethcommon:index_calls

5d7204db974da4bb8cea5f7582f0d4a412332acd

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 unionbackend@v0.1.0 ethcommon:index_calls

blockIndex
ethcommon:index_events_and_calls

9fecea473d8588a59ffe0fbdb8dd71f48de302b9

index_events_and_calls 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)
  • 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 unionbackend@v0.1.0 ethcommon:index_events_and_calls
Protobuf

Protobuf Docs Explorer

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