钱包地址
get https://api.cryptomus.com/v2/user-api/wallet-address/list 复制
要求
查询参数
| 姓名 | 参数类型 | 定义 |
|---|---|---|
| currency* | string | 货币代码 |
| network* | string | 区块链网络代码 |
参数类型
string定义
货币代码参数类型
string定义
区块链网络代码
* - 强制性参数
请求示例
curl https://api.cryptomus.com/v2/user-api/wallet-address/list \
-X GET \
-H 'userId: 8b03432e-385b-4670-8d06-064591096795' \
-H 'sign: fe99035f86fa436181717b302b95bacff1' \
-H 'Content-Type: application/json' \
-d '{"currency":"USDT","network":"tron"}'
复制回复
响应参数
| 姓名 | 参数类型 | 定义 |
|---|---|---|
| address | string | 地址 |
| network | string | 区块链网络代码 |
| currency | string | 货币代码 |
参数类型
string定义
地址参数类型
string定义
区块链网络代码参数类型
string定义
货币代码
响应示例
1{
2 "state": 0,
3 "result": [
4 {
5 "address": "TWPVX81pLpiucbFTq9frseURsFkA1hRnZU",
6 "network": "tron",
7 "currency": "USDT"
8 }
9 ]
10}
11 复制发生错误时的答案示例
{
"state": 1,
"errors": {
"currency": [
"The currency field is required."
],
"network": [
"The network field is required."
]
}
}复制