Documentation Index
Fetch the complete documentation index at: https://docs.predexon.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Predexon Trading API uses a managed wallet model. When an account enables a venue, the API provisions a wallet for that venue on the correct chain. You never handle private keys, manage gas, or sign transactions yourself.How It Works
Wallet creation
On the accounts path, wallet provisioning is explicit:POST /api/accounts/createcreates an empty account.POST /api/accounts/{accountId}/enablewith{ "venue": "polymarket" | "predict" | "opinion" | "limitless" }provisions a wallet for that venue, funds gas, and sets token approvals.- Poll
GET /api/accounts/{accountId}— each enabled venue’sstatusmoves fromprovisioningtoactive, and the on-chainaddressis populated.
| Venue | Chain | Collateral |
|---|---|---|
| Polymarket | Polygon | USDC.e |
| Predict.fun | BSC | USDT (BEP-20) |
| Opinion | BSC | USDT (BEP-20) |
| Limitless | Base | USDC (native) |
The legacy
/api/users/create endpoint auto-enables Polymarket and Predict in one call and returns polymarketWalletAddress / predictWalletAddress directly. See the legacy reference.Key security via Turnkey
Private keys are managed by Turnkey, a hardware-backed key management infrastructure.- Keys are generated and stored in secure enclaves
- Keys never leave the enclaves
- Predexon never has access to private keys
- All transaction signing happens server-side automatically
What the API handles
| Concern | Managed By |
|---|---|
| Key generation | Automatic on venue enablement |
| Transaction signing | Server-side via Turnkey |
| Gas fees | Handled by platform |
| Nonce management | Handled by platform |
Deposit Flow
Each venue has its own deposit method. Fetch the wallet address via Get Account →venues[venue].address, then send the right token on the right chain.
Polymarket — two options:
- Send USDC.e directly to the Polymarket wallet on Polygon.
- Use the Bridge API to deposit from Ethereum, Arbitrum, Base, Solana, or Bitcoin. Funds are automatically converted to USDC.e.
Withdrawal Flow
CallPOST /api/accounts/{accountId}/withdraw with the venue, amount, destination address, and chain. The API signs and submits the transaction on-chain and returns a transactionHash.
Before withdrawing:
- Cancel open orders (Predict, Opinion, and Limitless lock collateral on resting buy orders).
- Redeem any resolved winning positions.
- Verify available balance with Get Balance.
Security Boundaries
- Each API key can only access accounts it created.
- Attempting to access another API key’s account returns
403 Forbidden. - Wallet addresses are unique per account per venue.
