Skip to content

Получить баланс процессингового кошелька

GET
/v1/external/processing-wallet-balances
Сервер

Получить баланс процессингового кошелька

Авторизация

XApiKey
ТипAPI Key (header: X-Api-Key)

Параметры

Параметры запроса

blockchains
Типarray
uniqueItemstrue
currencies
Типarray
uniqueItemstrue

Ответы

OK
application/json
JSON
{
"code": 0,
"data": [
{
"additional_data": {
"evm_data": {
"cost_per_erc20": "string",
"cost_per_native": "string",
"is_l2": true,
"l1_data_fee_estimate": "string",
"max_transfers_erc20": "string",
"max_transfers_native": "string",
"suggested_gas_price": "string"
},
"tron_data": {
"available_bandwidth_for_use": "string",
"available_energy_for_use": "string",
"stacked_bandwidth": "string",
"stacked_bandwidth_trx": "string",
"stacked_energy": "string",
"stacked_energy_trx": "string",
"stacked_trx": "string",
"total_bandwidth": "string",
"total_energy": "string",
"total_used_bandwidth": "string",
"total_used_energy": "string",
"tron_transfer_data": {
"max_transfers_native": "string",
"max_transfers_trc20": "string"
}
}
},
"address": "string",
"assets": [
{
"amount": "string",
"amount_usd": "string",
"currency_id": "string",
"identity": "string"
}
],
"balance": {
"native_token": "string",
"native_token_usd": "string"
},
"blockchain": "string",
"currency": {
"blockchain": "string",
"code": "string",
"id": "string",
"is_bitcoin_like": true,
"is_evm_like": true,
"is_stable_coin": true,
"name": "string",
"precision": 0
}
}
],
"message": "string"
}

Примеры

cURL
curl -X GET \
'https://demo.dv.net/api/v1/external/processing-wallet-balances' \
 -H "Content-Type: application/json"
JavaScript
fetch('https://demo.dv.net/api/v1/external/processing-wallet-balances', {headers:{'Content-Type':'application/json'}})
  .then(response => response.json())
  .then(data => console.log(data));
PHP
<?php
$url = 'https://demo.dv.net/api/v1/external/processing-wallet-balances';
$method = 'GET';
$headers = [
    'Content-Type' => 'application/json',
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
Python
import requests

url = 'https://demo.dv.net/api/v1/external/processing-wallet-balances'

headers = {
    'Content-Type': 'application/json'
}

response = requests.get(url, headers=headers)
print(response.json())