POST /api/v1/approvals
Submit on-chain transactions to approve Polymarket contracts to spend your USDC and CTF tokens.
This endpoint only supports Polymarket.
Submits blockchain transactions on Polygon. Ensure your wallet has sufficient MATIC for gas fees.
Parameters
Body
Approve all tokens for all contracts.
Approve USDC for all contracts.
Approve CTF for all contracts.
Approve USDC for negative risk contracts only.
Approve CTF for negative risk contracts only.
Response
Whether the request succeeded.
Array of approval results.Show ApprovalResult properties
Transaction hash if successful.
Whether this approval succeeded.
Whether all transactions succeeded.
# Approve all tokens
curl -X POST \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"all": true}' \
"https://api.parsecapi.com/api/v1/approvals?exchange=polymarket"
# Approve USDC only
curl -X POST \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"usdc": true}' \
"https://api.parsecapi.com/api/v1/approvals?exchange=polymarket"
{
"success": true,
"data": {
"results": [
{ "token": "usdc", "target": "ctf_exchange", "tx_hash": "0xabc123...", "success": true },
{ "token": "usdc", "target": "neg_risk_ctf_exchange", "tx_hash": "0x789ghi...", "success": true },
{ "token": "ctf", "target": "ctf_exchange", "tx_hash": "0xstu901...", "success": true }
],
"all_succeeded": true
}
}
See Also