Skip to content

GuidesBuild schemas by venue

  • Production status: Not served. PRED is absent from the enabled hosted services. The build and signing contract below remains documentation for the integration and for callers with their own PRED arrangement.
  • Wallet and chain: A caller-owned PRED Safe on Base (8453) is the maker, and a distinct EVM EOA controlling that Safe signs the type-2 order client-side.
  • Venue account: A caller-owned PRED credential arrangement is required. Predictefy’s platform key is not accepted for orders made by caller-owned Safes.
  • Credentials: The documented submit shape uses the caller’s API key plus access and refresh JWTs for that one request; none is retained. There is no supported hosted credential path.
  • Funding: Do not fund for hosted submit while the venue is not served. Predictefy has no verified collateral asset or Safe funding/enablement route and exposes no hosted helper.

PRED is a strict server-built Safe-maker integration and has no client-echo compatibility path. It is not served. Only the three verified Base exchanges can be enabled; a catalog market whose promoted parent contract is not enabled fails closed. Check GET /v1/exec/venues rather than assuming the venue is available.

Send asset ({bytes32 child market id}#0 Long or #1 Short), or the child outcome plus outcomeSide, with isBuy, selected-outcome probability price, size, Safe owner, and its distinct EOA signer. The server reads the parent id and verifying contract from catalog metadata, maps normalized buy/sell semantics to PRED Long/Short intent, fixes fee to 0 and signature type to 2, generates the 02 + 10-digit salt, and returns buildVersion: 1 with the complete typed data. The domain is Pred CTF Exchange, version 1, chain 8453; it is never a hardcoded exchange address.

Sign the stored digest with the EOA, then submit { executionId, signature, owner, apiKey, accessToken, refreshToken }. Artifact version/integrity and EOA recovery run before the service reads any caller auth. Only { order, signature, owner } is persisted. The API key gates PRED login, the access JWT authenticates order placement, and all three values remain caller-supplied per request. The venue has confirmed that platform-key submissions are refused, so no Predictefy-hosted submit path is currently supported.

What the venue carries beyond build and submit

Section titled “What the venue carries beyond build and submit”

The unavailability above is about serving, not about the integration. The venue integration implements the venue’s documented order lifecycle, all authenticated with the caller’s own PRED JWT and wallet headers:

  • Cancel — buildCancel produces a bounded cancel artifact for an acknowledged order and the cancel submit relays DELETE /api/v1/order/{parentMarketId}/cancel; only the venue’s exact user_cancelled receipt for that order id maps to canceled (cancel_noop, not_found and any other answer are reported as unconfirmed). Cancel is implemented; while the venue is not served, the route answers as unsupported.
  • Modify: no PRED modify support. Hyperliquid is the only venue with one.
  • Redeem / settlement — PRED settles automatically (1.00 USDC per winning share, no claim endpoint), so there is nothing for settlement support to serve; intent: "redeem" stays 501 NOT_IMPLEMENTED by design.
  • Status refresh — POST /v1/exec/pred/orders/{id}/refresh reads the parent market’s open orders with the caller’s JWT: an order still listed is acked (remaining quantity reported); an order that is absent keeps its stored status with an explicit “unknown” observation, because PRED has no get-order-by-id and absence never proves a fill. No credential-free background poll exists.
  • Account reads: the integration implements native positions (GET /api/v1/portfolio/positions) and balance (GET /api/v1/portfolio/balance) with the caller’s JWT, reached through POST /v1/exec/pred/positions and /balance with the JWT and wallet fields in the body (sent once, never stored; the keyless GET form answers 400 naming the POST form). While the venue is not served, those routes answer as unsupported. Hosted capability states stay not_supported and there is no client.accounts.pred.

Read this list as capability truth: these verbs are implemented in the integration but are not reachable while PRED is not served.

PRED Safe enablement is a separate high-risk flow: the venue asks for a raw secp256k1 signature over its returned transactionHash, without an EIP-191 prefix. Use signPredSafeTransaction from the TypeScript SDK. It rebuilds the canonical Safe EIP-712 hash from every returned transaction field, checks the token/spender/amount against the encoded ERC-20 approval, and refuses to sign any mismatch.