Skip to main content
POST
/
v2
/
clob
/
account
/
deposit
curl -X POST https://api.pmx.trade/v2/clob/account/deposit \
  -H "Content-Type: application/json" \
  -d '{ "pubkey": "7xKXabc123...", "amount": "100000000" }'
{
  "transaction": "AQAAAAAAA...base64...",
  "message": "Deposit 100.000000 USDC into smart wallet"
}
Returns an unsigned Solana transaction that transfers USDC from your wallet into your personal smart wallet (a PDA-owned SPL token account derived from your public key). Your balance is the actual token balance in this account and is available for trading immediately after the transaction confirms. You can deposit multiple times to add more funds. To withdraw, use POST /v2/clob/account/withdraw.

Request body

pubkey
string
required
The Solana wallet public key (base58-encoded).
amount
string
required
Amount of USDC to deposit in raw units (6 decimals). For example, "100000000" = $100 USDC.

Response

transaction
string
Base64-encoded unsigned VersionedTransaction. Sign and submit to Solana.
message
string
Human-readable description of the transaction.
curl -X POST https://api.pmx.trade/v2/clob/account/deposit \
  -H "Content-Type: application/json" \
  -d '{ "pubkey": "7xKXabc123...", "amount": "100000000" }'
{
  "transaction": "AQAAAAAAA...base64...",
  "message": "Deposit 100.000000 USDC into smart wallet"
}
Your USDC is held in your personal smart wallet (PDA: ["user_escrow", owner_pubkey]). The actual SPL token balance is your balance — no virtual bookkeeping. The exchange transfers USDC between smart wallets during settlement. You can withdraw your available (non-committed) balance at any time.