GET /getAction with actionType=polymarket
returns a transaction that swaps the user’s token into Polymarket collateral
and places the order once funds arrive. No separate funding step and no
EIP-712 signature are required.
This page documents the polymarket variant of getAction. The canonical
endpoint reference — including all base parameters and the full response schema
— lives in the Swap API Reference.
Prerequisites
- A
userIdfor the trader’s EOA. CallPOST /createOrFetchPolymarketUseronce from your app: it returns theuserIdand a deposit (proxy) wallet keyed to the user’s EOA, which you pass asrecipient. This is a single API call your app makes behind the scenes — the user never signs up for anything. - A market to trade. Use the
market discovery endpoints to
find the CLOB
tokenID,tickSize, andnegRiskfor the outcome you want.
Request
GET /getAction with the standard base parameters (sender, srcChainId,
srcToken, dstChainId, dstToken, slippage) plus:
The source token can be any token on any supported chain — Swaps routes it
into Polymarket collateral on Polygon as part of the action.
Example
137) delivered to the user’s deposit
wallet.
Minimum order size
ForBUY orders (FOK/FAK), the collateral amount that would arrive after
the swap (amountOutMin) is validated before a transaction is returned:
- Orders below $1 are always rejected.
- The amount must also clear the market’s own minimum order size on the Polymarket CLOB.
Response and tracking
The response is a standard getActionActionResponse: a transaction to sign and
broadcast, quoted amounts, and a txId.
After the user broadcasts the transaction, Swaps completes the swap, delivers
collateral to the deposit wallet, and places the order on the CLOB. Track
end-to-end progress with
GET /workflows/getStatus
using the txId.