Package Logo
my_eth_common
my-eth-common@v0.3.16
Total Downloads
484
Published
yesterday
Publisher
User Avatar IxDaddy

Readme

Documentation

Modules

Maps icon
Maps

map
all_events

e88a01602ca56b4008e4d7e0d0b995ef52c7e6e9
map all_events (
blocksf.ethereum.type.v2.Block
)  -> 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 my-eth-common@v0.3.16 all_events

map
all_calls

4b598f9dd3880431288fef2a2d000b7331468654

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

substreams gui my-eth-common@v0.3.16 all_calls

map
filtered_events

8dc0335af5e918abf9dd065d06c9c01edc49f859
Default param : evt_sig:0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef || evt_sig:0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822 || evt_sig:0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67 || evt_sig:0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9 || evt_sig:0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118

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 my-eth-common@v0.3.16 filtered_events

map
filtered_calls

82b07d46f6e8cec62207ee574238a52d216c145f
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 my-eth-common@v0.3.16 filtered_calls

map
filtered_transactions

2e9f4145147f67679e694df7b155557d8dadbbc3
map filtered_transactions (
paramsstring
)  -> sf.substreams.ethereum.v1.Transactions
Default param : (evt_sig:0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef && (evt_sig:0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822 || evt_sig:0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67 || evt_sig:0x40e9cecb9f5f1f1c5b9c97dec2917b7ee92e57ba5563708daca94dd84ad7112f || evt_sig:0x2128d88d14c80cb081c1252a5acff7a264671bf199ce226b53788fb26065005e || evt_sig:0xb3e2773606abfd36b5bd91394b3a54d1398336c65005baf7bf7a05efeffaf75b || evt_sig:0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822)) || ( evt_sig:0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9 || evt_sig:0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118 || evt_sig:0xdd466e674ea557f56295e2d0218a125ea4b4f0f6f3307b95f85e6110838d6438 || evt_sig:0xab0d57f0df537bb25e80245ef7748fa62353808c54d6e528a9dd20887aed9ac2)

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 my-eth-common@v0.3.16 filtered_transactions

map
filtered_events_and_calls

fc116599d4393ea3c496d3eae67fa9263202d832
Default param : evt_sig:0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef || evt_sig:0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822 || evt_sig:0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67 || evt_sig:0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9 || evt_sig:0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118 || (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 my-eth-common@v0.3.16 filtered_events_and_calls
Block Indexes icon
Block Indexes

blockIndex
index_events

b11263cdf4522effee99d61fe58829b58f9b0dc8

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 my-eth-common@v0.3.16 index_events

blockIndex
index_calls

c965c8b4dcc8491b7158790347bcc7a7289bced2

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 my-eth-common@v0.3.16 index_calls

blockIndex
index_events_and_calls

3c71ef74bd97fbf23cf5feee05f3f1e139c8dcd0

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 my-eth-common@v0.3.16 index_events_and_calls
Protobuf

Protobuf Docs Explorer

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