All packages
starknet_foundational

starknet_foundational

streamingfast
This is not the latest version — go to v0.1.4
v0.1.3/881 downloads

Package ref

starknet-foundational@v0.1.3

Run package

CLI

Run filtered_transactions from the command line.

substreams run starknet-foundational@v0.1.3 filtered_transactions -e starknet --start-block -1
Authenticate by running substreams auth or directly on thegraph.market (see docs).

README

Substreams in Go with tinygo

First test is to receive a Clock in Go, and ship it to the Substreams engine, and have it run over there.

  • Craft a first map_mod that prints something to logs.

First test is to unpack a raw Ethereum Block, from within tinygo.

Build

tinygo build -o wasm.wasm -target wasi -gc leaking -scheduler none .

Usage

substreams gui ./substreams-starknet.yaml --plaintext -e 127.0.0.1:10016 -t +10 map_test
# or
substreams run ./substreams-starknet.yaml --plaintext -e 127.0.0.1:10016 -t +10 map_test
buf generate --exclude-path sf/substreams-starknet/v1,sf/substreams-starknet/rpc,google/,sf/substreams-starknet/sink,sf/substreams-starknet

Modules

Execution graph

3 modules
mapMain

filtered_transactions

`filtered_transactions` reads from `all_transactions` and applies a filter on keys, only outputting the transactions that match the filter. Example usage: `(tx:class_hash:0x0000000 && rc:type:0)`

Output

sf.substreams.starknet.type.v1.Transactions

Inputs

map

all_transactions

`all_transaction` reads from the `sf.starknet.type.v1.Block` source and outputs a list of all transactions in the block.

Output

sf.substreams.starknet.type.v1.Transactions

blockIndex

index_transactions

`index_events` sets the keys corresponding to all event 'types' and 'attribute keys' in the block

Output

sf.substreams.index.v1.Keys