Skip to main content
POST
/
api
/
dual-signed-ops
/
{opId}
/
release-expired
Release an EXPIRED split / merge lock after verifying on-chain absence
curl --request POST \
  --url https://core-api.adipredictstreet.com/api/dual-signed-ops/{opId}/release-expired \
  --header 'X-Api-Key: <api-key>'
import requests

url = "https://core-api.adipredictstreet.com/api/dual-signed-ops/{opId}/release-expired"

headers = {"X-Api-Key": "<api-key>"}

response = requests.post(url, headers=headers)

print(response.text)
const options = {method: 'POST', headers: {'X-Api-Key': '<api-key>'}};

fetch('https://core-api.adipredictstreet.com/api/dual-signed-ops/{opId}/release-expired', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://core-api.adipredictstreet.com/api/dual-signed-ops/{opId}/release-expired",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://core-api.adipredictstreet.com/api/dual-signed-ops/{opId}/release-expired"

req, _ := http.NewRequest("POST", url, nil)

req.Header.Add("X-Api-Key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://core-api.adipredictstreet.com/api/dual-signed-ops/{opId}/release-expired")
.header("X-Api-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://core-api.adipredictstreet.com/api/dual-signed-ops/{opId}/release-expired")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "signedOpId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "<string>",
  "vaultAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb3",
  "deadline": 123,
  "refunded": true,
  "refundAppliedNow": true,
  "updatedAt": "2023-11-07T05:31:56Z",
  "reason": "<string>",
  "txHash": "<string>"
}
{
"error": {
"code": "bad_request",
"message": "<string>",
"details": {},
"trace_id": "<string>"
},
"status": 400
}
{
"error": {
"code": "bad_request",
"message": "<string>",
"details": {},
"trace_id": "<string>"
},
"status": 400
}
{
"error": {
"code": "bad_request",
"message": "<string>",
"details": {},
"trace_id": "<string>"
},
"status": 400
}
{
"error": {
"code": "bad_request",
"message": "<string>",
"details": {},
"trace_id": "<string>"
},
"status": 400
}
{
"error": {
"code": "bad_request",
"message": "<string>",
"details": {},
"trace_id": "<string>"
},
"status": 400
}
{
"error": {
"code": "bad_request",
"message": "<string>",
"details": {},
"trace_id": "<string>"
},
"status": 400
}
{
"error": {
"code": "bad_request",
"message": "<string>",
"details": {},
"trace_id": "<string>"
},
"status": 400
}

Authorizations

X-Api-Key
string
header
required

Partner / integrator key — format ps_live_<keyId>_<secret>. Issued by PredictStreet ops on request; never self-service. Never ship to a browser. multi_wallet partners must additionally send X-User-Wallet: 0x<40-hex> on every authenticated request to declare the acting wallet. See the API keys guide for scope taxonomy, partner kinds, rate limits, and rotation procedure.

Headers

X-User-Wallet
string

Required for multi_wallet partners on every authenticated request; ignored for single_wallet. Declares the acting end-user wallet for this request — drives KYC checks, balances/positions/orders attribution, rate-limit buckets, and audit. Lower-cased server-side. Missing on a multi_wallet key → 401 api_key_user_wallet_required; malformed → 401 api_key_user_wallet_invalid. The on-chain CTFExchange/Vault contracts still verify EIP-712 signer ↔ vault binding, so loosening API-layer attribution is safe by construction.

Pattern: ^0x[a-fA-F0-9]{40}$
Example:

"0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb3"

Path Parameters

opId
string<uuid>
required

signed_ops.id UUID returned by the original split / merge / convert signature endpoint.

Response

Refund applied, or no-op snapshot of an already-terminal op (use refundAppliedNow to distinguish).

signedOpId
string<uuid>
required

signed_ops.id — same UUID the original signature endpoint returned.

opKind
enum<string>
required

Operation kind. Always SPLIT or MERGE on success — other kinds short-circuit with 400 op_kind_unsupported.

Available options:
SPLIT,
MERGE
status
string
required

Post-call status. EXPIRED after a successful refund; whatever the row was already in (EXPIRED / CANCELLED / REVERTED / REJECTED / FAILED) on an idempotent re-request.

vaultAddress
string
required
Pattern: ^0x[a-fA-F0-9]{40}$
Example:

"0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb3"

deadline
integer
required

Unix seconds the op was signed against. Always more than 90s in the past on a successful response.

refunded
boolean
required

signed_ops.refunded after this call — true for any EXPIRED/CANCELLED/REVERTED/REJECTED/FAILED terminal.

refundAppliedNow
boolean
required

true if this call performed the refund transition; false for an idempotent re-request against an already-terminal op (the row is returned unchanged).

updatedAt
string<date-time>
required

ISO-8601 timestamp of the last signed_ops mutation.

reason
string | null

signed_ops.reason audit string — set to user:<vaultAddress> after a successful refund by this endpoint; may be sweeper / cosigner / etc. on rows refunded by other paths.

txHash
string | null

signed_ops.tx_hash. Always null on this endpoint's responses — the op never confirmed on-chain by definition.