Skip to main content
POST
/
2
/
pm
/
redeem
/
build
Build position redemption transaction
curl --request POST \
  --url https://demo-api.mobula.io/api/2/pm/redeem/build \
  --header 'Content-Type: application/json' \
  --data '
{
  "address": "<string>",
  "conditionId": "<string>",
  "indexSets": [
    123
  ],
  "isNegRisk": false
}
'
{
  "data": {
    "to": "<string>",
    "calldata": "<string>",
    "chainId": 123,
    "safeAddress": "<string>"
  },
  "hostname": "<string>",
  "took": 123
}
Alpha — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.

Body

application/json
address
string
required
conditionId
string
required
indexSets
number[]
required
isNegRisk
boolean
default:false

Response

200 - application/json

Redeem transaction

data
object
hostname
string
took
number