from #18000000
Output
sf.substreams.sink.entity.v1.EntityChanges
Inputs
Package ref
substreams-preflight-demo-xh@v0.1.0Run package
CLI
Run graph_out from the command line.
substreams run substreams-preflight-demo-xh@v0.1.0 graph_out -e mainnet --start-block -1substreams auth or directly on thegraph.market (see docs).README
Ethereum mainnet USDC transfers as typed records and canonical The Graph EntityChanges.
This package decodes ERC-20 Transfer events emitted by the USDC contract from block 18,000,000 onward. It emits raw token amounts as decimal strings and performs no RPC enrichment.
| Module | Kind | Output | Description |
|---|---|---|---|
map_usdc_transfers | map | demo.usdc.v1.UsdcTransfers | Decodes typed USDC transfer records. |
graph_out | map | sf.substreams.sink.entity.v1.EntityChanges | Creates UsdcTransfer entities with ID {tx_hash}-{log_index}. |
wasm32-unknown-unknown targetbuf and protocFrom the repository root:
npm run preflight -- \
--intent demo/usdc-transfers-graph-out/substreams.intent.json \
--project demo/usdc-transfers-graph-out
cd demo/usdc-transfers-graph-out
substreams build
substreams auth
. ./.substreams.env
substreams run ./substreams.yaml graph_out \
--start-block 18000000 \
--stop-block 18000101 \
--output jsonl
The stop block is exclusive, so this command processes blocks 18,000,000 through 18,000,100.
Modules
Output
sf.substreams.sink.entity.v1.EntityChanges
Inputs