获取钱包详情
GET
/api/v1/wallets/{walletBizId}HMAC获取指定钱包的详细信息。
请求头
| Name | Type | Required | Description |
|---|---|---|---|
X-Api-Key | string | Yes | API 密钥标识符 |
X-Signature | string | Yes | HMAC-SHA256 签名 |
X-Timestamp | string | Yes | Unix 时间戳(秒) |
X-Nonce | string | Yes | 唯一请求标识符(UUID) |
路径参数
| Name | Type | Required | Description |
|---|---|---|---|
walletBizId | string | Yes | 钱包业务 ID |
请求示例
curl -X GET https://api.slaunchx.cc/api/v1/wallets/<walletBizId> \
-H "X-Api-Key: sk_live_xxx" \
-H "X-Signature: <computed_signature>" \
-H "X-Timestamp: 1709337600" \
-H "X-Nonce: 550e8400-e29b-41d4-a716-446655440000"响应
成功200
{
"version": "1.3.0",
"success": true,
"code": "2000",
"message": "SUCCESS",
"data": {
"bizId": "wlt_abc123",
"name": "Main USD Wallet",
"type": "INTERNAL",
"status": "ACTIVE",
"currency": "USD",
"balance": 1500.25
}
}