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
}
}
}
}