錢包地址
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."
]
}
}複製