Invoke mergePositions via the relayer to convert outcomes back to collateral.
mergePositions so the relayer converts outcome tokens back into collateral on your behalf. Use this once you no longer need the split exposure or after outcomes converge.
https://relayer.forka.st/operations/merge-position with the same L2 authentication headers. The relayer signs and broadcasts the merge transaction from its custodial wallet.merge-position accepts the exact same schema as split-position:
| Field | Type | Required | Description |
|---|---|---|---|
collateral_token | string | Yes | ERC-20 collateral token to receive after merging. |
contract | string | Yes | Conditional Tokens contract you want to call. |
condition_id | string | Yes | Condition you previously split. |
parent_collection_id | string | Yes | Parent collection identifier. |
partition | array<string> | Yes | The same partition used when splitting. |
amount | string | Yes | Amount of collateral you expect after merging. |
txHash.400 responses when the supplied partition does not match the split history for the given parent collection.