Skip to main content
GET
/
v2
/
clob
/
account
/
setup
curl "https://api.pmx.trade/v2/clob/account/setup?pubkey=7xKXabc123..."
{
  "exchangePda": "ExchPda123...",
  "collateralMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "programId": "BbS1n5nSaEvkBfkGyhuM36hUNxNRCj7pCCLtrJGR3bB",
  "smartWallet": "SmartWallet456...",
  "ready": true,
  "smartWalletBalance": "100000000",
  "usdcBalance": "50000000"
}
Returns whether a wallet has a personal smart wallet with a deposited balance. A positive smart wallet balance is required to place orders.

Query parameters

pubkey
string
required
The Solana wallet public key (base58-encoded).

Response

exchangePda
string
Exchange PDA address (base58).
collateralMint
string
USDC mint address (base58).
programId
string
CLOB program ID (base58).
smartWallet
string
Personal smart wallet address where deposited USDC is held (base58). Derived as PDA: ["user_escrow", owner_pubkey].
ready
boolean
true if the user has a personal smart wallet with balance greater than 0.
smartWalletBalance
string
Current USDC balance in the user’s personal smart wallet (raw units).
usdcBalance
string
Current USDC balance in the user’s wallet (raw units).
curl "https://api.pmx.trade/v2/clob/account/setup?pubkey=7xKXabc123..."
{
  "exchangePda": "ExchPda123...",
  "collateralMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "programId": "BbS1n5nSaEvkBfkGyhuM36hUNxNRCj7pCCLtrJGR3bB",
  "smartWallet": "SmartWallet456...",
  "ready": true,
  "smartWalletBalance": "100000000",
  "usdcBalance": "50000000"
}
If ready is false, you need to deposit USDC into your personal smart wallet before you can place orders.