錢包地址
get https://api.cryptomus.com/v2/user-api/payout/services 複製
要求
查詢參數
| 姓名 | 定義 |
|---|---|
| currency* | 貨幣代碼 |
| network* | 區塊鏈網路程式碼 |
定義
貨幣代碼定義
區塊鏈網路程式碼
* - 必需參數
請求範例
curl https://api.cryptomus.com/v2/user-api/payout/services \
-X POST \
-H 'userId: 8b03432e-385b-4670-8d06-064591096795' \
-H 'sign: fe99035f86fa436181717b302b95bacff1' \
-H 'Content-Type: application/json' \
-d '{
"currency": "USDT",
"network": "tron"
}複製回覆
響應參數
回覆附有所有可用付款服務的集合
| 姓名 | 定義 |
|---|---|
| address | 地址 |
| network | 區塊鏈網路程式碼 |
| currency | 貨幣代碼 |
定義
地址定義
區塊鏈網路程式碼定義
貨幣代碼
回應範例
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."
]
}
}複製