Manage wallet balances, deposits, withdrawals, debt status, and fund activity on Leapcat via the leapcat CLI.
Manage wallet balances, deposits, withdrawals, debt status, and fund activity using the leapcat.
npx [email protected] which auto-downloads the CLI)npx [email protected] auth login --email <email> firstnpx [email protected] auth reauth --json firstCheck the user's current wallet balance.
npx [email protected] wallet balance --json
Get the deposit address for receiving funds.
npx [email protected] wallet deposit-address --json
List all deposit transactions.
npx [email protected] wallet deposits --json
Get details of a specific deposit.
npx [email protected] wallet deposit --id <deposit-id> --json
Parameters:
--id <deposit-id> — The deposit transaction identifierInitiate a withdrawal. Requires an elevated session (auth reauth) and trade password.
npx [email protected] wallet withdraw --amount <amount> --address <address> --json
Parameters:
--amount <amount> — Amount to withdraw--address <address> — Destination wallet addressList all withdrawal transactions.
npx [email protected] wallet withdrawals --json
Check if the user has any outstanding debt or margin obligations.
npx [email protected] wallet debt-status --json
View a history of all fund activities (deposits, withdrawals, trades, fees, etc.).
npx [email protected] wallet fund-activities --json
npx [email protected] wallet balance --json
wallet deposit-address --json to obtain the address.wallet deposits --json to check if the deposit has arrived and been confirmed.npx [email protected] auth reauth --json to elevate the session (Turnkey session).wallet withdraw --amount <amount> --address <address> --json. The user will be prompted for their trade password.wallet withdrawals --json to track the withdrawal status.npx [email protected] wallet fund-activities --json
| Error | Cause | Resolution |
|---|---|---|
NOT_AUTHENTICATED | Session expired | Re-authenticate with auth login |
REAUTH_REQUIRED | Elevated session needed for withdrawal | Run auth reauth --json first |
TRADE_PASSWORD_NOT_SET | Trade password required for withdrawal | Set via auth trade-password set |
INSUFFICIENT_BALANCE | Not enough funds to withdraw | Check balance and adjust amount |
INVALID_ADDRESS | Destination address is malformed | Verify the withdrawal address |
WITHDRAWAL_LIMIT_EXCEEDED | Amount exceeds daily/monthly limit | Reduce the withdrawal amount |
DEPOSIT_NOT_FOUND | Invalid deposit ID | Re-check with wallet deposits --json |