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.

Subscriptions use the WebSocket endpoint wss://api.mobula.io/graphql/subscriptions with the graphql-transport-ws protocol.

Returns

onHoldersUpdated
HoldersUpdate
A batched holders update for the subscribed token, emitted whenever balances change. See HoldersUpdate.

Arguments

tokenId
String!
required
Token identifier in <tokenAddress>:<networkId> form (e.g. 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1).

Example

subscription {
  onHoldersUpdated(tokenId: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1") {
    holders
    tokenId
    tokenAddress
    networkId
    balances {
      address
      balance
      shiftedBalance
      balanceUsd
      firstHeldTimestamp
    }
  }
}