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
| EventType | Description |
|---|---|
| Split | Collateral converted into outcome tokens (minting). |
| Merge | Outcome tokens converted back to collateral. |
| Redemption | After 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.Amounts — Amount (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.Question — Title, 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.
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.
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).
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 USD). Useful for tracking large payouts and whale activity.
query MyQuery {
EVM(network: matic) {
PredictionSettlements(
limit: { count: 10 }
orderBy: { descending: Block_Time }
where: {
Settlement: {
EventType: { is: "Redemption" }
Amounts: { CollateralAmountInUSD: { 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 USD for one market (filter by question title). Replace the title with your market question.
query MyQuery {
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: "Will Trump nominate Judy Shelton as the next Fed chair?"
}
}
}
}
}
) {
Settlement {
Holder
}
redeemed_amount: sum(of: Settlement_Amounts_CollateralAmountInUSD)
}
}
}
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.
query MyQuery {
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_CollateralAmountInUSD)
}
}
}
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.
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 case | Approach |
|---|---|
| Live settlement feed | Use the real-time subscription above. |
| Recent activity | Use Latest settlements with limit and orderBy: { descending: Block_Time }. |
| Volume by event type | Use Redemption/Merge/Split count with a time window. |
| Large payouts | Use Latest whale settlements with Amounts.Amount: { ge: "..." } and EventType: Redemption. |
| Winners for one market | Use Top 10 winners of a market question with Question.Title: { is: "..." }. |
| Hottest markets by redemptions | Use Top 10 market questions by redeemed amount. |
| Top redeemers | Use Top 10 redeemers (optionally change hours_ago or add more filters). |
For market creation and resolution events, see PredictionManagements. For trades, see PredictionTrades.