Wallet-Adresse
get https://api.cryptomus.com/v2/user-api/wallet-address/list Kopie
Anfrage
Abfrageparameter
| Name | Parametertyp | Definition |
|---|---|---|
| currency* | string | Währungscode |
| network* | string | Blockchain -Netzwerkcode |
Parametertyp
stringDefinition
WährungscodeParametertyp
stringDefinition
Blockchain -Netzwerkcode
* - obligatorischer Parameter
Beispiel anfordern
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"}'
KopieAntwort
Antwortparameter
| Name | Parametertyp | Definition |
|---|---|---|
| address | string | Adresse |
| network | string | Blockchain -Netzwerkcode |
| currency | string | Währungscode |
Parametertyp
stringDefinition
AdresseParametertyp
stringDefinition
Blockchain -NetzwerkcodeParametertyp
stringDefinition
Währungscode
Antwortbeispiel
1{
2 "state": 0,
3 "result": [
4 {
5 "address": "TWPVX81pLpiucbFTq9frseURsFkA1hRnZU",
6 "network": "tron",
7 "currency": "USDT"
8 }
9 ]
10}
11 KopieEin Beispiel für eine Antwort im Fehlerfall
{
"state": 1,
"errors": {
"currency": [
"The currency field is required."
],
"network": [
"The network field is required."
]
}
}Kopie