Stream Scheduler Subgraph

Repo

Subgraph Explorers

Mainnets

Ethereum Mainnet

Polygon

Gnosis (xDAI)

Avalanche

Arbitrum

Optimism

Binance Smart Chain (BSC)

Testnets

Polygon Mumbai

Ethereum Goerli

Basic Example Queries

You can test these out in the Ethereum Mainnet sandbox.

Remember that subgraph queries expect all letters within provided addresses to be in full lowercase.

Fetching all Flow Schedules for a certain sender

{
  flowScheduleCreatedEvents(where: {sender: "0xbd5a76f59df49527e47df66d7d7b5590a237871d"}) {
    id
    order
    sender
    receiver
    startAmount
    startDate
    startDateMaxDelay
    superToken
    flowRate
  }
}

Note that that the id attribute is formatted as "{Event Name}-{Transaction Hash}-{Log Index}". Log index is provided as it's possible that multiple of the same event occur in the same transaction, so with the log index gives unique identification.

id: "FlowScheduleCreated-0x04ca752e609289f6144df3e0096ccb9772ba4923781612096ec5582f62c3ff46-171"

indicates...

Event Name: FlowScheduleCreated

Transaction Hash: 0x04ca752e609289f6144df3e0096ccb9772ba4923781612096ec5582f62c3ff46

Log Index: 171

Fetching all Flow Deletion tasks executed before a certain time

{
  deleteTasks(where: {executedAt_lt: "1688457635"}) {
    sender
    receiver
    superToken
  }
}

Last updated