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.

Event is shared by the historical query path (getTokenEvents / getTokenEventsForMaker) and the live subscription path (onTokenEventsCreated / onEventsCreated). Field types are identical, but which fields are populated differs by path — noted per field below as Historical vs Live.
id
String!
Unique event identifier in transactionHash:logIndex:networkId form. Always populated.
address
String!
Pool (pair) contract address. Always populated.
networkId
Int!
Network ID. Always populated.
eventType
EventType!
Event kind. See EventType. Always populated.
eventDisplayType
EventDisplayType
Buy/Sell for Swap (when quoteToken is set), Mint/Burn for LP events. See EventDisplayType.
commitmentLevel
EventCommitmentLevel!
Historical: always Confirmed. Live: EVM events are Confirmed; Solana events are ingested at Processed commitment and the value reflects the level you requested via the subscription’s commitmentLevel argument (default Confirmed). See EventCommitmentLevel.
quoteToken
QuoteToken
Quote side selected by the request, if any. See QuoteToken.
data
EventData
Per-event payload — use a __typename switch in your query. Codex documents BurnEventData / MintEventData / SwapEventData; Mobula additionally emits PoolBalanceChangedEventData and SyncEventData (superset — Codex clients can ignore the extra members). See EventData.
timestamp
Int!
Unix seconds. Always populated.
logIndex
Int!
Log index within the block. Historical: legacy NULL-index rows are coerced to 0. Always populated.
transactionHash
String!
Transaction hash. Always populated.
transactionIndex
Int!
Transaction index within the block. Historical: always 0 (column not stored on swaps). Live: populated from the source swap/pool event.
blockHash
String!
Block hash. Historical: empty string on the swap path; populated on the pool path. Live: populated.
blockNumber
Int!
Block height. Historical: 0 on the swap path; populated on the pool path. Live: populated.
maker
String
Maker / transaction sender wallet address.
token0Address
String
Pair’s token0 address.
token1Address
String
Pair’s token1 address.
baseTokenPrice
String
Base token USD price at event time. Not populated on either path today — always null.
liquidityToken
String
Liquidity token address. Not populated on either path today — always null.
token0SwapValueUsd
String
USD value of token0 in this swap. Historical: null. Live: populated for Swap events, null otherwise.
token1SwapValueUsd
String
USD value of token1 in this swap. Historical: null. Live: populated for Swap events, null otherwise.
token0PoolValueUsd
String
USD value of token0 reserves at event time. Historical: null. Live: populated.
token1PoolValueUsd
String
USD value of token1 reserves at event time. Historical: null. Live: populated.
token0ValueBase
String
Token0 value denominated in the base token. Not populated on either path today — always null.
token1ValueBase
String
Token1 value denominated in the base token. Not populated on either path today — always null.
supplementalIndex
Int
Additional ordering hint for chains with multiple events per (block, log) (e.g. Solana). Historical: null. Live: populated when available.
feeData
EventFeeData
Fee breakdown. Historical: only poolFeeAmountRaw is populated. Live: not yet populated — always null. See EventFeeData.
labels
LabelsForEvent
Sandwich / washtrade labels. Not populated on either path today — always null. See LabelsForEvent.
walletAge
Int
Maker wallet age. Not populated on either path today — always null.
walletLabels
[String!]
Maker wallet labels. Not populated on either path today — always null.