Skip to main content

Prediction Market Settlements API

The PredictionSettlements API returns Split, Merge, and Redemption events for prediction markets (e.g. Polymarket) on Polygon. Use it to stream live settlements, list latest activity, count events by type, find large redemptions (whales), and rank top winners or top markets by redeemed amount.

Network: Polygon (network: matic). Part of the Prediction Market API lifecycle (Management → Trades → Settlement).

Event types

EventTypeDescription
SplitCollateral converted into outcome tokens (minting).
MergeOutcome tokens converted back to collateral.
RedemptionAfter resolution: winning outcome tokens redeemed for collateral (payout).

Key fields

  • Settlement.EventType"Split", "Merge", or "Redemption".
  • Settlement.OutcomeTokenIds — Token IDs from the condition. Split/Merge: all outcome token IDs; Redemption: typically all (redeemer holds winning outcome).
  • Settlement.AmountsAmount (outcome token amount), CollateralAmount, AmountInUSD, CollateralAmountInUSD.
  • Settlement.Holder — Address that receives or sends tokens/collateral.
  • Settlement.Prediction.CollateralToken — Collateral token (e.g. USDC): Name, Symbol, AssetId, SmartContract.
  • Settlement.Prediction.QuestionTitle, MarketId, Id, Image, ResolutionSource, CreatedAt. Use Title to filter by market (e.g. specific question).
  • Settlement.Prediction.Outcome — Id, Index, Label (winning outcome on Redemption).
  • Settlement.Prediction.Marketplace — ProtocolName, ProtocolFamily, SmartContract.
  • Settlement.Prediction.OutcomeToken — Outcome token contract: Name, Symbol, AssetId, SmartContract.

Real-time settlement stream

Subscribe to live Split, Merge, and Redemption events as they occur on Polygon.

Run in Bitquery IDE

subscription PredictionSettlementsStream {
EVM(network: matic) {
PredictionSettlements {
Block {
Time
}
Log {
Signature {
Name
}
SmartContract
}
Settlement {
Amounts {
Amount
AmountInUSD
CollateralAmount
CollateralAmountInUSD
}
EventType
Holder
OutcomeTokenIds
Prediction {
CollateralToken {
Name
Symbol
AssetId
SmartContract
}
ConditionId
OutcomeToken {
Name
Symbol
AssetId
SmartContract
}
Marketplace {
SmartContract
ProtocolFamily
ProtocolName
}
Question {
Title
MarketId
ResolutionSource
Image
CreatedAt
Id
}
Outcome {
Id
Index
Label
}
}
}
Transaction {
Hash
}
}
}
}

Latest settlements (historical)

Fetch the most recent settlements with full details, ordered by block time.

Run in Bitquery IDE

query LatestPredictionSettlements {
EVM(network: matic) {
PredictionSettlements(
limit: { count: 10 }
orderBy: { descending: Block_Time }
) {
Block {
Time
}
Log {
Signature {
Name
}
SmartContract
}
Settlement {
Amounts {
Amount
AmountInUSD
CollateralAmount
CollateralAmountInUSD
}
EventType
Holder
OutcomeTokenIds
Prediction {
CollateralToken {
Name
Symbol
AssetId
SmartContract
}
ConditionId
OutcomeToken {
Name
Symbol
AssetId
SmartContract
}
Marketplace {
SmartContract
ProtocolFamily
ProtocolName
}
Question {
Title
MarketId
ResolutionSource
Image
CreatedAt
Id
}
Outcome {
Id
Index
Label
}
}
}
Transaction {
From
Hash
}
}
}
}

Redemption / Merge / Split count (last 1 hour)

Count how many settlement events occurred in the last hour, grouped by event signature (Split, Merge, Redemption).

Run in Bitquery IDE

query RedemptionsMergeSplitCount {
EVM(network: matic) {
PredictionSettlements(
where: { Block: { Time: { since_relative: { hours_ago: 1 } } } }
) {
count
Log {
Signature {
Name
}
}
}
}
}

Latest whale settlements (large redemptions)

Find the most recent high-value redemptions (e.g. amount ≥ 10,000 in outcome token units). Useful for tracking large payouts and whale activity.

Run in Bitquery IDE

query LatestWhaleSettlements {
EVM(network: matic) {
PredictionSettlements(
limit: { count: 10 }
orderBy: { descending: Block_Time }
where: {
Settlement: {
EventType: { is: "Redemption" }
Amounts: { Amount: { ge: "10000" } }
}
}
) {
Block {
Time
}
Log {
Signature {
Name
}
SmartContract
}
Settlement {
Amounts {
Amount
AmountInUSD
CollateralAmount
CollateralAmountInUSD
}
EventType
Holder
OutcomeTokenIds
Prediction {
CollateralToken {
Name
Symbol
AssetId
SmartContract
}
ConditionId
OutcomeToken {
Name
Symbol
AssetId
SmartContract
}
Marketplace {
SmartContract
ProtocolFamily
ProtocolName
}
Question {
Title
MarketId
ResolutionSource
Image
CreatedAt
Id
}
Outcome {
Id
Index
Label
}
}
}
Transaction {
From
Hash
}
}
}
}

Top 10 winners of a specific market question

Rank holders by total redeemed amount for one market (filter by question title). Replace the title with your market question.

Run in Bitquery IDE

query TopWinnersByMarketQuestion {
EVM(network: matic) {
PredictionSettlements(
limit: { count: 10 }
orderBy: { descendingByField: "redeemed_amount" }
where: {
Block: { Time: { since_relative: { hours_ago: 1 } } }
Settlement: {
EventType: { is: "Redemption" }
Prediction: {
Question: {
Title: {
is: "Bitcoin Up or Down - February 17, 3:00AM-3:15AM ET"
}
}
}
}
}
) {
Settlement {
Holder
}
redeemed_amount: sum(of: Settlement_Amounts_Amount)
}
}
}

Top 10 market questions by redeemed amount (last 1 hour)

Aggregate redemptions by market question and sort by total redeemed amount. Use this to see which markets had the most payout activity recently.

Run in Bitquery IDE

query TopMarketQuestionsByRedeemedAmount {
EVM(network: matic) {
PredictionSettlements(
limit: { count: 10 }
orderBy: { descendingByField: "redeemed_amount" }
where: {
Block: { Time: { since_relative: { hours_ago: 1 } } }
Settlement: { EventType: { is: "Redemption" } }
}
) {
Settlement {
Prediction {
Question {
Title
}
Outcome {
Label
}
}
}
redeemed_amount: sum(of: Settlement_Amounts_Amount)
}
}
}

Top 10 redeemers (last 1 hour)

Rank addresses by total amount redeemed in the last hour across all markets. Useful for leaderboards and whale tracking.

Run in Bitquery IDE

query TopRedeemers {
EVM(network: matic) {
PredictionSettlements(
limit: { count: 10 }
orderBy: { descendingByField: "redeemed_amount" }
where: {
Block: { Time: { since_relative: { hours_ago: 1 } } }
Settlement: { EventType: { is: "Redemption" } }
}
) {
Settlement {
Holder
}
redeemed_amount: sum(of: Settlement_Amounts_Amount)
}
}
}

Use cases

Use caseApproach
Live settlement feedUse the real-time subscription above.
Recent activityUse Latest settlements with limit and orderBy: { descending: Block_Time }.
Volume by event typeUse Redemption/Merge/Split count with a time window.
Large payoutsUse Latest whale settlements with Amounts.Amount: { ge: "..." } and EventType: Redemption.
Winners for one marketUse Top 10 winners of a market question with Question.Title: { is: "..." }.
Hottest markets by redemptionsUse Top 10 market questions by redeemed amount.
Top redeemersUse Top 10 redeemers (optionally change hours_ago or add more filters).

For market creation and resolution events, see PredictionManagements. For trades, see PredictionTrades.