Vault Wallet
Retrieve a specific vault wallet by address (agent_address or vault_address)
Vault address - can be agent_address (Privy wallet) or vault_address (contract)
0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6Vault wallet retrieved successfully
Unauthorized - invalid or missing token
Vault wallet not found
This API performs all vault creation steps in one call: 1) Creates a Privy wallet (agent), 2) Deploys vault contract via PearVaultFactory onchain, 3) Saves to database, 4) Creates backend agent wallet for trading. This replaces the old two-step process (createVaultWallet + registerVault).
Leader/owner address of the vault
0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6Name for the vault wallet
My Trading VaultDescription/about text for the vault wallet
This is my trading vault for automated strategiesImage URL for the vault wallet
https://example.com/images/vault-avatar.pngConfiguration ID for the vault from frontend (0-based index)
0Vault created successfully with onchain transaction
Invalid request parameters
Unauthorized - invalid or missing token
Failed to create vault (Privy wallet creation or blockchain transaction failed)
Delete a specific vault wallet by address. This action cannot be undone.
Vault address - can be agent_address (Privy wallet) or vault_address (contract)
0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6Vault wallet deleted successfully
Unauthorized - invalid or missing token
Vault wallet not found
No content
Retrieve all vault wallets for the authenticated user. Supports filtering by name and address.
Filter vault wallets by name (case-insensitive partial match)
My Trading VaultFilter vault wallets by address (matches agent_address or vault_address, case-insensitive partial match)
0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6Vault wallets retrieved successfully
Unauthorized - invalid or missing token
Create a new agent wallet for a specific registered vault. This is useful when the current agent wallet needs to be refreshed or rotated.
Vault address - can be agent_address (Privy wallet) or vault_address (contract)
0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6Agent wallet refreshed successfully
Unauthorized - invalid or missing token
Vault wallet not found or vault not registered
Transfer USDC directly from spot account to perp account for trading
Amount of USDC to transfer from spot to perp account
100.0Asset to transfer (default: USDC)
USDCExample: USDCTransfer completed successfully
Invalid transfer amount or insufficient balance
Unauthorized - invalid or missing token
Transfer USDC directly from perp account to spot account
Amount of USDC to transfer from perp to spot account
100.0Asset to transfer (default: USDC)
USDCExample: USDCTransfer completed successfully
Invalid transfer amount or insufficient balance
Unauthorized - invalid or missing token
Swap a spot token (ETH, SOL, etc.) to USDC and transfer the USDC to perp account for trading
Asset to swap from (e.g., ETH, SOL, BTC)
ETHAmount of the source asset to swap
0.1Asset to swap to (default: USDC)
USDCExample: USDCSwap and transfer completed successfully
Invalid swap parameters or insufficient balance
Unauthorized - invalid or missing token
Retrieve balances for both spot and perp accounts
Balances retrieved successfully
Unauthorized - invalid or missing token
Last updated