Skip to main content
GET
/
prediction-market-init
Returns a transaction to initialize a prediction market idempotently
curl --request GET \
  --url https://quote-api.dflow.net/prediction-market-init
{
  "computeUnitLimit": 1,
  "lastValidBlockHeight": 1,
  "transaction": "<string>"
}

Query Parameters

payer
string
required

Base58-encoded address of the payer

outcomeMint
string
required

Base58-encoded mint address of either outcome mint for the market to be initialized

Response

Prediction market init response

computeUnitLimit
integer<int32>
required

Compute unit limit assigned to the transaction

Required range: x >= 0
lastValidBlockHeight
integer<int64>
required

The last block height at which the blockhash assigned to the transaction is valid. Useful to determine whether the transaction has expired.

Required range: x >= 0
transaction
string
required

Base64-encoded transaction to initialize the market for the requested outcome mint. The payer must sign before sending it to Solana.