Guthaben abrufen

get https://api.cryptomus.com/v2/user-api/balance Kopie

Anfrage

Beispiel anfordern

curl https://api.cryptomus.com/v2/user-api/balance \
    -H 'userId: 8b03432e-385b-4670-8d06-064591096795' \
    -H 'sign: fe99035f86fa436181717b302b95bacff1' \
    -H 'Content-Type: application/json' 
Kopie

Antwort

Antwortparameter

NameParametertypDefinition
walletUuidstringWallet UUID
currency_codestringWallet-Währung
balancestringWallet-Guthaben
balanceUsdstring|nullWallet-Guthaben in USD

Parametertyp

string

Definition

Wallet UUID

Parametertyp

string

Definition

Wallet-Währung

Parametertyp

string

Definition

Wallet-Guthaben

Parametertyp

string|null

Definition

Wallet-Guthaben in USD

Antwortbeispiel


1{
2  "state": 0,
3  "result": {
4    "balances": [
5      {
6        "walletUuid": "4ba23a47-a182-4d87-8c68-247c974be566",
7        "currency_code": "BCH",
8        "balance": "0.00000000",
9        "balanceUsd": "0.00"
10      },
11      ...
12      {
13        "walletUuid": "539f051f-7ceb-4ac4-831e-21ebdba0a5d0",
14        "currency_code": "XMR",
15        "balance": "0.00000000",
16        "balanceUsd": "0.00"
17      }
18    ]
19  }
20}
Kopie