API Reference
GET
/v1/account/balance Account balance
读取用户钱包地址、授权额度与 USDC 余额。
Parameters
This endpoint has no path or query parameters.
Request body
This endpoint does not accept a JSON request body.
Responses
200 OK
400 Bad Request
401 Unauthorized
404 Not Found
502 Upstream Error
Examples
curl -X GET 'https://api.jd.io/v1/account/balance' \
-H 'Authorization: Bearer <USER_API_KEY>' {
"ok": true,
"data": {
"userId": "user_123",
"address": "0x0000000000000000000000000000000000000000",
"funderAddress": "0x0000000000000000000000000000000000000000",
"balanceBaseUnit": "<BALANCEBASEUNIT>",
"allowanceBaseUnit": "<ALLOWANCEBASEUNIT>",
"balanceUsdc": 10
}
}