String!
The contract address of the token’s top pair.
EventCommitmentLevel!
The commitment level of the event within the live stream.
See EventCommitmentLevel
String
The price of the network’s base token.
String!
The hash of the block where the transaction occurred.
Int!
The block number for the transaction.
EventData
union
The event-specific data for the transaction. Can be
BurnEventData or MintEventData or SwapEventData.
See EventDataEventType!
The type of transaction event. Can be
Burn, Mint, Swap, Sync, Collect, or CollectProtocol.
See EventTypeString!
The ID of the event (
address:networkId). For example, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1.String
The contract address of the token with higher liquidity in the token’s top pair.
Int!
The index of the log in the block.
String
The wallet address that performed the transaction.
Int!
The network ID that the token is deployed on.
QuoteToken
The token of interest within the token’s top pair. Can be
token0 or token1.
See QuoteTokenInt!
The unix timestamp for when the transaction occurred.
String
The address of the event’s token0.
String
The address of the event’s token1.
String
The price of
token0 paid/received in USD, including any fees.String
The price of
token1 paid/received in USD, including any fees.String
The price of
token0 paid/received in the network’s base token, including fees.String
The price of
token1 paid/received in the network’s base token, including fees.String
The updated price of
token0 in USD, calculated after the transaction.String
The updated price of
token1 in USD, calculated after the transaction.String!
The unique hash for the transaction.
Int!
The index of the transaction within the block.
Int
An optional unique identifier describing where the event appears within the transaction.
EventDisplayType
A more specific breakdown of
eventType. Splits Swap into Buy or Sell.
See EventDisplayTypeLabelsForEvent
Labels attributed to the event.
See LabelsForEvent
EventFeeData
Fee breakdown for this event.
See EventFeeData
Int
The age of the wallet in seconds.
[String!]
Labels attributed to the wallet.
Used By
Returned by- getTokenEvents: Returns transactions for a pair.
- getTokenEventsForMaker: Returns a list of token events for a given maker (wallet address).
- onEventsCreated: Live-streamed transactions for a pair.
- onEventsCreatedByMaker: Live-streamed transactions for a maker.
- onTokenEventsCreated: Live-streamed events for a given token across all it’s pools