Oracle

Propose an attestation

Requires an api-key with the oracle:write scope and a funded PAX bond. The market must be closed and not yet resolved.

post/v1/oracle/attestations

Request

  • Base URL: https://origin.predictasiax.com
  • URL: https://origin.predictasiax.com/v1/oracle/attestations
  • Auth: API key in header X-API-Key

Request body

market_idstring required
proposed_outcomestring required

The outcome the proposer attests resolves the market.

evidence_urlsstring[]
provider_idstring

Optional provider to credit the attestation to.

Example request

{
  "market_id": "mkt_aabbccddeeff00112233445566778899",
  "provider_id": "ovp_9f8e7d6c5b4a39281706f5e4d3c2b1a0"
}

Response

Attestation proposed; proposer bond locked.

idstring
market_idstring
proposer_user_idstring
provider_idstring nullable
proposed_outcomestring
evidence_urlsstring[]
bond_paxstring

Decimal string with up to 6 fractional digits

state'proposed' | 'disputed' | 'resolved'
liveness_expires_atstring date-time nullable
disputer_user_idstring nullable
disputer_outcomestring nullable
disputer_evidence_urlsstring[] nullable
disputer_bond_paxstring nullable
disputed_atstring date-time nullable
resolved_outcomestring nullable
proposer_wonboolean nullable
reward_paxstring

Decimal string with up to 6 fractional digits

created_atstring date-time nullable
updated_atstring date-time nullable
finalized_atstring date-time nullable

Example response

{
  "id": "att_1a2b3c4d5e6f70819a2b3c4d5e6f7081",
  "market_id": "mkt_aabbccddeeff00112233445566778899",
  "proposer_user_id": "usr_0011223344556677889900aabbccddee",
  "provider_id": "ovp_9f8e7d6c5b4a39281706f5e4d3c2b1a0",
  "bond_pax": "1234.5678",
  "reward_pax": "1234.5678"
}

Changes

No recorded changes to this operation across all 1 revision of this API.