Skip to main content
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

exchange
string
required
Must be polymarket.

Body

all
boolean
default:"false"
Approve all tokens for all contracts.
usdc
boolean
default:"false"
Approve USDC for all contracts.
ctf
boolean
default:"false"
Approve CTF for all contracts.
usdc_neg_risk
boolean
default:"false"
Approve USDC for negative risk contracts only.
ctf_neg_risk
boolean
default:"false"
Approve CTF for negative risk contracts only.

Response

success
boolean
Whether the request succeeded.
data
object
# 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