残高を取得する

get
https://api.cryptomus.com/v2/user-api/balance
コピー

リクエスト

リクエスト例

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

応答

応答パラメーター

名前意味
walletUuidウォレット UUID
currency_codeウォレット通貨
balanceウォレット残高
balanceUsdウォレット残高(USD)

意味

ウォレット UUID

意味

ウォレット通貨

意味

ウォレット残高

意味

ウォレット残高(USD)

応答の例


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}
コピー