Skip to content
Fourohtwo

Prepare a pUSD withdrawal batch to the bridge routing address

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

Prepare a pUSD withdrawal batch to the bridge routing address. `recipientAddr` defaults to the signer and is echoed in `plan.plan.details.recipient`; check it before signing. 422 when the asset is not on the bridge's list or the amount is under its minimum (2 pUSD for USDC on Base), since the bridge never delivers smaller transfers. On submit, `final` means the pUSD reached the bridge; delivery to

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

Uptime100% of 1 check 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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://chainhilt.ai/api/v1/predict/polymarket/wallet/:signer/withdraw/prepare", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"amount":"10","recipientAddr":"0xE4934BB19E0B97109033dBfDcCc6957E32F9Cc60","toChainId":"8453","toTokenAddress":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}),
});
console.log(await res.json());

Example input

{
  "amount": "10",
  "recipientAddr": "0xE4934BB19E0B97109033dBfDcCc6957E32F9Cc60",
  "toChainId": "8453",
  "toTokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}

More from chainhilt-x402