Skip to content
Fourohtwo

Prepare a batch redeeming resolved positions to pUSD

chainhilt.ai/api/v1/predict/polymarket/wallet/:signer/redeem/prepare

Prepare a batch redeeming resolved positions to pUSD; `conditionId` narrows it to one condition. `plan.plan.details.conditions` lists what this batch redeems. Protocol V2 positions go in a batch of their own: when CTF positions are redeemable too, this batch carries those and `plan.plan.details.pendingConditions` lists the V2 conditions for the next prepare. V2 outcomes that pay nothing are skippe

BaseAnswering
POSThttps://chainhilt.ai/api/v1/predict/polymarket/wallet/:signer/redeem/prepare

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://chainhilt.ai/api/v1/predict/polymarket/wallet/:signer/redeem/prepare", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({}),
});
console.log(await res.json());

Example input

{}

More from chainhilt-x402Provider status