settlements

Returns prediction settlements on Polygon: block time, block number, signature name, smart contract, from, transaction hash, event type and 25 more fields.

By Omkar_BQ · saved 7 April 2026 · Bitquery API v2

What it returns

The query

query SettlementsByBlockRange($ge: String!, $le: String!, $protocol: String!) {
  EVM(network: matic) {
    PredictionSettlements(
      where: {
        TransactionStatus: {Success: true}
        Settlement: {
          Prediction: {
            Marketplace: {ProtocolName: {is: $protocol}}
          }
        }
        Block: {Number: {ge: $ge, le: $le}}
      }
    ) {
      Block {
        Time
        Number
      }
      Call {
        Signature {
          Name
        }
      }
      Log {
        Signature {
          Name
        }
        SmartContract
      }
      Transaction {
        From
        Hash
      }
      Settlement {
        EventType
        Holder
        OutcomeTokenIds
        Prediction {
          CollateralToken {
            AssetId
            BalanceSlotIndex
            Decimals
            SmartContract
            Symbol
          }
          ConditionId
          Marketplace {
            SmartContract
            ProtocolName
            ProtocolFamily
          }
          Outcome {
            Label
            Index
            Id
          }
          OutcomeToken {
            SmartContract
            Symbol
            AssetId
            BalanceSlotIndex
            ProtocolName
            Name
          }
          Question {
            Title
            CreatedAt
            GroupId
            Id
            Image
            MarketId
            ResolutionSource
          }
        }
        Amounts {
          Amount
          AmountInUSD
          CollateralAmount
          CollateralAmountInUSD
        }
      }
    }
  }
}

Similar queries