Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mobula.io/llms.txt

Use this file to discover all available pages before exploring further.

Returns

getTokenEvents
EventConnection
Paginated list of events for the pair. See EventConnection.

Arguments

query
EventsQueryInput!
required
Filter and pair selection. See EventsQueryInput.
limit
Int
Max events per page. Clamped to [1, 100]. Default 50.
cursor
String
Pagination cursor from previous response. Source-tagged: a cursor minted by one query is rejected by another (silently treated as “no cursor”).
direction
RankingDirection
DESC (default — most recent first) or ASC. See RankingDirection.

Example

query GetTokenEvents {
  getTokenEvents(
    query: {
      address: "0x16b9a82891338f9ba80e2d6970fdda79d1eb0dae"
      networkId: 56
      quoteToken: token0
      eventDisplayType: [Buy]
      priceUsdTotal: { gte: 100 }
    }
    limit: 20
    direction: DESC
  ) {
    cursor
    items {
      id
      eventType
      eventDisplayType
      timestamp
      transactionHash
      maker
      data {
        __typename
        ... on SwapEventData {
          priceUsd
          priceUsdTotal
          amountNonLiquidityToken
        }
      }
    }
  }
}

Playground