leapcat-wallet

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

LeapCat Wallet Management Skill

LeapCat 钱包管理Skill

Manage wallet balances, deposits, withdrawals, debt status, and fund activity using the leapcat.
使用leapcat管理钱包余额、充值、提现、债务状态和资金动态。

Prerequisites

前置要求

  • Node.js 18+ is required (commands use
    npx leapcat@latest
    which auto-downloads the CLI)
  • User must be authenticated — run
    npx leapcat@latest auth login --email <email>
    first
  • For withdrawals: a Turnkey session is required — run
    npx leapcat@latest auth reauth --json
    first
  • For withdrawals: trade password must be set
  • 需要安装Node.js 18及以上版本(命令使用
    npx leapcat@latest
    会自动下载CLI)
  • 用户必须完成身份认证 —— 请先运行
    npx leapcat@latest auth login --email <email>
  • 提现操作需要Turnkey会话 —— 请先运行
    npx leapcat@latest auth reauth --json
  • 提现操作必须已设置交易密码

Commands

命令

wallet balance

wallet balance

Check the user's current wallet balance.
bash
npx leapcat@latest wallet balance --json
查询用户当前钱包余额。
bash
npx leapcat@latest wallet balance --json

wallet deposit-address

wallet deposit-address

Get the deposit address for receiving funds.
bash
npx leapcat@latest wallet deposit-address --json
获取用于接收资金的充值地址。
bash
npx leapcat@latest wallet deposit-address --json

wallet deposits

wallet deposits

List all deposit transactions.
bash
npx leapcat@latest wallet deposits --json
列出所有充值交易记录。
bash
npx leapcat@latest wallet deposits --json

wallet deposit

wallet deposit

Get details of a specific deposit.
bash
npx leapcat@latest wallet deposit --id <deposit-id> --json
Parameters:
  • --id <deposit-id>
    — The deposit transaction identifier
获取指定充值交易的详情。
bash
npx leapcat@latest wallet deposit --id <deposit-id> --json
参数:
  • --id <deposit-id>
    —— 充值交易ID

wallet withdraw

wallet withdraw

Initiate a withdrawal. Requires an elevated session (
auth reauth
) and trade password.
bash
npx leapcat@latest wallet withdraw --amount <amount> --address <address> --json
Parameters:
  • --amount <amount>
    — Amount to withdraw
  • --address <address>
    — Destination wallet address
发起提现。需要升级会话权限(
auth reauth
)以及交易密码。
bash
npx leapcat@latest wallet withdraw --amount <amount> --address <address> --json
参数:
  • --amount <amount>
    —— 提现金额
  • --address <address>
    —— 目标钱包地址

wallet withdrawals

wallet withdrawals

List all withdrawal transactions.
bash
npx leapcat@latest wallet withdrawals --json
列出所有提现交易记录。
bash
npx leapcat@latest wallet withdrawals --json

wallet debt-status

wallet debt-status

Check if the user has any outstanding debt or margin obligations.
bash
npx leapcat@latest wallet debt-status --json
查询用户是否有未偿还债务或保证金负债。
bash
npx leapcat@latest wallet debt-status --json

wallet fund-activities

wallet fund-activities

View a history of all fund activities (deposits, withdrawals, trades, fees, etc.).
bash
npx leapcat@latest wallet fund-activities --json
查看所有资金动态历史(充值、提现、交易、手续费等)。
bash
npx leapcat@latest wallet fund-activities --json

Workflow

工作流

Checking Balance

查询余额

bash
npx leapcat@latest wallet balance --json
bash
npx leapcat@latest wallet balance --json

Depositing Funds

资金充值

  1. Get deposit address — Run
    wallet deposit-address --json
    to obtain the address.
  2. Share address with user — Provide the address so the user can transfer funds from an external source.
  3. Monitor deposit — Periodically run
    wallet deposits --json
    to check if the deposit has arrived and been confirmed.
  1. 获取充值地址 —— 运行
    wallet deposit-address --json
    获取地址。
  2. 告知用户地址 —— 提供地址以便用户从外部渠道转入资金。
  3. 监控充值状态 —— 定期运行
    wallet deposits --json
    查看充值是否到账并确认。

Withdrawing Funds

资金提现

  1. Re-authenticate — Run
    npx leapcat@latest auth reauth --json
    to elevate the session (Turnkey session).
  2. Initiate withdrawal — Run
    wallet withdraw --amount <amount> --address <address> --json
    . The user will be prompted for their trade password.
  3. Monitor withdrawal — Run
    wallet withdrawals --json
    to track the withdrawal status.
  1. 重新身份认证 —— 运行
    npx leapcat@latest auth reauth --json
    升级会话权限(获取Turnkey会话)。
  2. 发起提现申请 —— 运行
    wallet withdraw --amount <amount> --address <address> --json
    ,系统将提示用户输入交易密码。
  3. 监控提现状态 —— 运行
    wallet withdrawals --json
    跟踪提现进度。

Reviewing Activity

查看动态

bash
npx leapcat@latest wallet fund-activities --json
bash
npx leapcat@latest wallet fund-activities --json

Error Handling

错误处理

ErrorCauseResolution
NOT_AUTHENTICATED
Session expiredRe-authenticate with
auth login
REAUTH_REQUIRED
Elevated session needed for withdrawalRun
auth reauth --json
first
TRADE_PASSWORD_NOT_SET
Trade password required for withdrawalSet via
auth trade-password set
INSUFFICIENT_BALANCE
Not enough funds to withdrawCheck balance and adjust amount
INVALID_ADDRESS
Destination address is malformedVerify the withdrawal address
WITHDRAWAL_LIMIT_EXCEEDED
Amount exceeds daily/monthly limitReduce the withdrawal amount
DEPOSIT_NOT_FOUND
Invalid deposit IDRe-check with
wallet deposits --json
错误码原因解决方案
NOT_AUTHENTICATED
会话已过期使用
auth login
重新认证
REAUTH_REQUIRED
提现需要升级会话权限先运行
auth reauth --json
TRADE_PASSWORD_NOT_SET
提现需要交易密码通过
auth trade-password set
设置交易密码
INSUFFICIENT_BALANCE
余额不足无法提现查询余额并调整提现金额
INVALID_ADDRESS
目标地址格式错误核对提现地址
WITHDRAWAL_LIMIT_EXCEEDED
金额超出日/月限额降低提现金额
DEPOSIT_NOT_FOUND
无效的充值ID使用
wallet deposits --json
重新查询