outcomeOperate
Splits Outcome collateral into a complete YES + NO set, or merges a matched
YES + NO set back into collateral. Send exactly one of split or merge;
each array must contain 1–50 entries.
outcomeOperateSplit collateral into a YES + NO set, or merge a set back into collateral.Agent-signed
Complete sets to create; mutually exclusive with `merge`.
Outcome instrument id. Long form: `asset`.
Number of complete sets to split or merge. Long form: `sz`.
Must be `outcomeOperate`.
"outcomeOperate"Complete sets to redeem; mutually exclusive with `split`.
Outcome instrument id. Long form: `asset`.
Number of complete sets to split or merge. Long form: `sz`.
Must be `outcomeOperate`.
"outcomeOperate"curl -X POST https://rpc.txflow-testnet.xyz/exchange \
-H "Content-Type: application/json" \
-H "x-api-version: 2026-08-16" \
-d '{
"action": {
"type": "outcomeOperate",
"split": [
{
"a": 19127212,
"s": "10"
}
]
},
"signature": {
"r": "0x<r>",
"s": "0x<s>",
"v": 27
},
"nonce": 1757992743994,
"vaultAddress": null,
"signatureChainId": null
}'`0` on success.
The action's internal name, which does not always match the request `type`.
"OutcomeOperate"A rejected request returns `err` with a non-zero `code` and the reason in `message` (or `response`).
"ok"{
"status": "ok",
"code": 0,
"data": {
"type": "OutcomeOperate",
"data": {
"statuses": [
"success"
]
}
}
}Split
For each { a, s }, a is the Outcome instrument id and s is the number of
complete sets. A successful split freezes s units of Outcome-account
collateral and creates a long (YES) and short (NO) position of size s, both
at the protocol's fixed split price of 0.5.
Merge
Merge is the inverse. The account must hold both YES and NO legs in at least
size s; the operation closes that matched amount and releases s units of
collateral.
Entries are checked independently during execution. An entry that cannot be
split or merged may be skipped, so confirm the resulting positions with
outcomePositions and balances with
clearinghouseState (accountType: "outcome").