{"slug":"chainhilt-ai-api-v1-predict-polymarket-orders-construct-a213c7","title":"Construct a prediction-market order; never submits","host":"chainhilt.ai","method":"POST","resource":"https://chainhilt.ai/api/v1/predict/polymarket/orders/construct","category":"market","description":"Construct a prediction-market order; never submits. Needs a `credentialToken` from /predict/polymarket/credentials. Returns `construction` and a signature action the chainhilt wallet signs and POSTs to /predict/polymarket/orders/submit. Review orderSummary and warnings before signing: `estimatedBuil","price_listed":0.01,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":26,"reported_payers_30d":3,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"account":"0xE4934BB19E0B97109033dBfDcCc6957E32F9Cc60","credentialToken":"pcr1.…","marketId":"512329","orderType":"GTC","outcomeTokenId":"111","postOnly":false,"price":"0.42","side":"buy","size":"10","walletType":"deposit_wallet"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"account":{"description":"The signer EOA. With walletType deposit_wallet, the maker is its derived deposit wallet.","pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"credentialToken":{"description":"Sealed venue credentials for `account` from POST /predict/polymarket/credentials.","minLength":1,"type":"string"},"expiresAt":{"description":"ISO 8601 expiry: required for GTD, refused for GTC, at least 3 minutes out. Polymarket expires the order 60 seconds earlier.","type":"string"},"marketId":{"description":"Polymarket market id from markets/search.","pattern":"^[A-Za-z0-9_-]{1,128}$","type":"string"},"orderType":{"description":"GTC rests until filled or cancelled; GTD expires 60 seconds before `expiresAt`, Polymarket's security threshold.","enum":["GTC","GTD"],"type":"string"},"outcomeTokenId":{"description":"The outcome's `tokenId` from the market's `outcomes`; must belong to `marketId`.","minLength":1,"type":"string"},"postOnly":{"default":false,"description":"Only rest on the book, never cross on arrival. Default false.","type":"boolean"},"price":{"description":"Limit price per share in pUSD, strictly between 0 and 1 (e.g. \"0.42\"), a multiple of the market's `tickSize`.","pattern":"^0\\.[0-9]{1,6}$","type":"string"},"side":{"description":"Buy or sell outcome shares.","enum":["buy","sell"],"type":"string"},"size":{"description":"Shares, up to 2 decimals; at least the market's `minOrderSize`.","pattern":"^[0-9]+(\\.[0-9]{1,2})?$","type":"string"},"walletType":{"default":"deposit_wallet","description":"deposit_wallet (default, signatureType 3) or eoa; the venue rejects plain EOA makers unless allowlisted.","enum":["deposit_wallet","eoa"],"type":"string"}},"required":["marketId","outcomeTokenId","side","orderType","price","size","account","credentialToken"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Construct a prediction-market order; never submits. Needs a `credentialToken` from /predict/polymarket/credentials. Returns `construction` and a signature action the chainhilt wallet signs and POSTs to /predict/polymarket/orders/submit. Review orderSummary and warnings before signing: `estimatedBuilderFee` (ours) and `estimatedVenueFee` (Polymarket's) are pUSD on top of the principal. Errors: 400 invalid input, 401 invalid credentialToken, 422 order refused, 502 venue failure.","last_updated":"2026-11-27T16:01:51.81Z","schemes":["exact"]}