Overview
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.
Protocol
x402 (POST)
Price
$0.01
Payment Asset
USD Coin
Payment Network
eip155:8453
Category
crypto/wallet
Provider
chainhilt-x402
Indexed
2026-11-02 18:57:25
Health
Status
unknown
Latency (p50)
—
Uptime (30d)
—
Reliability Score
—
Last Checked
Never
Last Healthy
Never
Consecutive Failures
0
Input Schema
{
"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
{
"example": {
"construction": {
"constructionToken": "…",
"orderSummary": {
"estimatedBuilderFee": {
"amount": "0.021",
"asset": "pUSD"
},
"estimatedVenueFee": {
"amount": "0",
"asset": "pUSD"
},
"limitPrice": "0.42",
"shares": "10",
"side": "buy"
},
"venue": "polymarket",
"warnings": [],
"wire": {
"expiration": "0",
"orderType": "GTC",
"postOnly": false
}
},
"response": {
"actions": [
{
"chainId": 137,
"data": {
"constructionToken": "…",
"credentialToken": "pcr1.…",
"typedData": {
"primaryType": "TypedDataSign"
}
},
"protocol": "polymarket",
"submitPath": "/predict/polymarket/orders/submit",
"type": "signature"
}
],
"errors": [],
"warnings": []
}
},
"type": "json"
}