PolyClaw executes trades directly on Polygon using a private key configured via theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/deniszidbaev-cmyk/polyclaw-cmyk/llms.txt
Use this file to discover all available pages before exploring further.
POLYCLAW_PRIVATE_KEY environment variable. The wallet commands let you inspect your wallet’s current state and grant the contract approvals that Polymarket’s V2 exchange requires before any split or CLOB operation can succeed.
polyclaw wallet status
Displays the wallet address, unlock state, approval status, and current token balances.
Usage
| Field | Description |
|---|---|
address | Your Polygon wallet address (derived from POLYCLAW_PRIVATE_KEY) |
unlocked | Whether the private key is loaded and accessible |
approvals_set | Whether the Polymarket V2 exchange approvals are in place |
balances.POL | Native Polygon token balance (used for gas) |
balances.pUSD | Polymarket USD balance (trading collateral) |
balances.USDC.e | Bridged USDC on Polygon (can be wrapped 1:1 to pUSD) |
If
approvals_set is false, a migration notice is printed alongside the JSON. Polymarket migrated from USDC.e / V1 contracts to pUSD / V2 Exchange contracts on 2026-04-28. Old V1 USDC.e approvals are stale but harmless. Run polyclaw wallet approve to set the new V2 approvals.polyclaw wallet approve
Submits the one-time Polymarket V2 contract approval transactions to Polygon. This is required before your first trade and only needs to be done once per wallet.
Usage
Submits 6 approval transactions
Six
approve calls are sent to Polygon, authorising the Polymarket CTF Exchange and related V2 contracts to move your pUSD and outcome tokens.Wait for confirmations
Each transaction is confirmed on-chain. The command prints a numbered list of transaction hashes on completion.
Understanding balances
POL
The native Polygon token. Used exclusively for gas fees. Not a trading collateral. You need a small amount (≥ 0.05 POL recommended) in your wallet at all times to cover transaction costs.
pUSD
Polymarket USD — the trading collateral introduced in the V2 migration on 2026-04-28. All splits and redemptions are denominated in pUSD. If your balance is zero, wrap your USDC.e or deposit via the Polymarket UI.
USDC.e
Bridged USDC on Polygon. No longer accepted directly by Polymarket contracts. Wrap 1:1 to pUSD via the Collateral Onramp contract at
0x93070a847efEf7F70739046A929D47a521F5B8ee (call wrap()). The polymarket.com UI does this automatically; CLI users must wrap manually.Wrapping USDC.e to pUSD
Ifpolyclaw wallet status shows a USDC.e balance but zero pUSD, you need to wrap before trading: