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

Quote withdrawable amount

POSThttps://api.agg.market/execution/withdrawable/quote

Returns the maximum deliverable amount for a token and destination chain without creating a withdrawal.

Loading code example
Loading code example

Authorizations

appIdstringheaderrequired

API key passed in the header.

Body

tokenSymbol"USDC" | "USDC.e" | "USDT"required

Stable-coin symbol the withdrawal is denominated in.

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

Chain ID where the recipient would receive funds.

Required range: x >= 1

Response

application/json

200

tokenSymbol"USDC" | "USDC.e" | "USDT"required

Stable-coin symbol the withdrawal is denominated in.

Allowed values: "USDC" | "USDC.e" | "USDT"
destinationChainIdintegerrequired
Required range: x >= 1
maxDeliverableRawstringrequired

Maximum amount the withdrawal planner can deliver, in destination decimals.

Pattern: ^[0-9]+$
rawBalanceRawstringrequired

Eligible raw balance before dust floors and route fees, in destination decimals.

Pattern: ^[0-9]+$
decimalsintegerrequired
Required range: x >= 0, x <= 36
Quote withdrawable amount — Agg.market — Prediction Market Aggregator