AGG is currently in alpha. APIs, components, and docs may change.
Agg.market — Prediction Market Aggregator logo

Preview a withdrawal

Returns real fee + receive estimates for a withdrawal without creating one. Optional — /execution/withdraw does not require a prior preview.

POSThttps://api.agg.market/execution/withdraw/preview

Returns real fee + receive estimates for a withdrawal without creating one. Optional — /execution/withdraw does not require a prior preview.

Loading code example
Loading code example

Authorizations

appIdstringheaderrequired

API key passed in the header.

Body

amountRawstringrequired

Positive integer string in the token's native decimals.

Pattern: ^[1-9][0-9]*$
tokenSymbol"USDC" | "USDC.e" | "USDT"required

Stable-coin symbol the withdrawal is denominated in.

Allowed values: "USDC" | "USDC.e" | "USDT"
destinationAddressstringrequired

Recipient address. EVM destinations: 0x-prefixed 20-byte hex. Solana: base58 (32–44 chars).

Pattern: ^(0x[a-fA-F0-9]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$
destinationChainIdintegerrequired

Chain ID where the recipient address should receive funds.

Required range: x >= 1
maxboolean

Cap to the deliverable maximum (withdraw-max intent).

Response

application/json

200

receiveAmountRawstringrequired
feeRawstringrequired
relayFeeRawstringrequired
networkFeeRawstringrequired
pricingStatus"quoted" | "unviable"required
Allowed values: "quoted" | "unviable"
quoteExpiresAtstringrequired
unviableReasonstringrequired
maxDeliverableRawstringrequired