Package Logo
polymarket-trader-index
polymarket-trader-index@v0.11.0
Total Downloads
2
Published
21 hours ago
Network
polygon polygon
Publisher
User Avatar colindickson

Readme

Documentation

Modules

Maps icon
Maps

map
map_user_keys

72bf6c9c1fa185382abf21ca549ad72e20121078
map map_user_keys (
blocksf.ethereum.type.v2.Block
)  -> sf.substreams.index.v1.Keys

Warming gate. Reuses the already-warm foundational eth_common:index_events to run only on blocks where one of the 8 Polymarket contracts emitted an event, then decodes those logs and emits a user:<address> key for every wallet involved. Segments with no Polymarket activity are skipped wholesale, so warming this package only touches blocks with Polymarket activity.

substreams gui polymarket-trader-index@v0.11.0 map_user_keys

map
map_user_activity

df14c17db60816878a4819e6303fa9af1d450970
map map_user_activity (
paramsstring
)  -> sf.substreams.index.v1.Keys
Default param : user:0x0000000000000000000000000000000000000000
substreams gui polymarket-trader-index@v0.11.0 map_user_activity

map
eth_common:all_events

433686393b184c57628660f7dbe6cfed4d72a9e9
map eth_common: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 polymarket-trader-index@v0.11.0 eth_common:all_events
Block Indexes icon
Block Indexes

blockIndex
index_users

e472f5767c7ffe3da5b39543a27623b24fa1b544

Per block, emits user:<address> for every wallet involved in any Polymarket action that block. Consumers filter with e.g. query.string: "user:0xabc… || user:0xdef…" to process only the blocks those wallets were active in. Pass-through of map_user_keys: inherits its foundational-index skipping (when the map is skipped its output is absent, so this index has no input and is skipped too).

substreams gui polymarket-trader-index@v0.11.0 index_users

blockIndex
eth_common: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 polymarket-trader-index@v0.11.0 eth_common:index_events
Protobuf

Protobuf Docs Explorer

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