Skip to Content
VPerpAPI

Transfers, Withdrawals & Agents

Move USDC between Spot and Perp, withdraw to EVM, authorize API wallets, and deposit into vaults.

POST/exchange
User EIP-712 Signed (Master Wallet)

Account-level fund movements and wallet authorizations must be signed by the master wallet using the User-Signed EIP-712 flow (VPerpTransaction:*, vperpChain, and signatureChainId). See Authentication & Signing.


Spot ↔ Perp Transfer (usdClassTransfer)

Move USDC between your Spot and Perpetuals margin balances.

{
  "type": "usdClassTransfer",
  "vperpChain": "VPerpTestnet",
  "signatureChainId": "0xa4b1",
  "amount": "1000",
  "toPerp": true,
  "nonce": 1700000000000
}
  • toPerp: true transfers Spot → Perp; false transfers Perp → Spot.

Withdraw to EVM (withdraw3)

Initiate a bridge withdrawal of USDC to any valid non-zero EVM address (not restricted to the sender's own address; master-wallet signed only). The response includes the x-vcore-withdrawal-id header for tracking settlement.

{
  "type": "withdraw3",
  "vperpChain": "VPerpTestnet",
  "signatureChainId": "0xa4b1",
  "destination": "0x0000000000000000000000000000000000000000",
  "amount": "250",
  "time": 1700000000000
}
  • Minimum & Fee: Minimum withdrawal 5 USDC; fixed bridge fee 1 USDC (net_payout = amount - 1 USDC). Debits spot_usdc first and automatically sweeps any shortfall from free perp_usdc. See Bridge & Protocol Vault for mainnet rolling caps and dispute windows.

Send USDC (usdSend / sendAsset)

Transfer USDC to another account. Standard accounts use usdSend (or spotSend); Unified / Portfolio Margin accounts reject usdSend/spotSend and must use sendAsset. Sending to a previously unactivated address via usdSend, spotSend, or sendAsset charges the sender a one-time 0.1 USDC activation fee.

{
  "type": "usdSend",
  "vperpChain": "VPerpTestnet",
  "signatureChainId": "0xa4b1",
  "destination": "0x0000000000000000000000000000000000000000",
  "amount": "100",
  "time": 1700000000000
}

Approve API Wallet (approveAgent)

Authorize an Agent wallet address to sign trading actions (order, cancel, modify, etc.) on behalf of your master account.

{
  "type": "approveAgent",
  "vperpChain": "VPerpTestnet",
  "signatureChainId": "0xa4b1",
  "agentAddress": "0x1111111111111111111111111111111111111111",
  "agentName": "trading-bot-1",
  "nonce": 1700000000000
}
  • For restricted bots, use approveAgentScoped with a scope JSON string supporting permissions ("trade" | "cancelOnly" | "reduceOnly"), allowedAssets, allowedSubaccounts, allowMaster, and maxLeverageCap.

Protocol Vault Deposit / Redeem / Cancel (userVaultTransfer / userProtocolVaultCancel)

Subscribe to, redeem from, or cancel a pending queue request in the Protocol Market-Making Vault (MMV). All vault fund movements require a direct master-wallet EIP-712 signature (trading agents are strictly forbidden).

{
  "type": "userVaultTransfer",
  "vperpChain": "VPerpTestnet",
  "signatureChainId": "0xa4b1",
  "vaultAddress": "0x7600000000000000000000000000000000000000",
  "isDeposit": true,
  "usd": 1000000000,
  "nonce": 1700000000000
}
  • vaultAddress: Must target the Tier 0 Parent vault address (direct deposits to Strategy/Liquidator sub-vaults are rejected).
  • usd: Integer amount in micro-USDC (1 USDC = 1,000,000). Minimum deposit 5 USDC; max 32 pending subscriptions and 32 pending redemptions per account.
  • Queues & Settlement: Default 7-day subscription escrow queue and 30-day pro-rata redemption queue (zero commission). Matured redemptions and canceled subscription refunds credit spot_usdc (or the unified pool). See Bridge & Protocol Vault.

On this page