Skip to content

Получить неподтверждённые транзакции для трансфера

GET
/v1/external/transactions/unconfirmed/transfer
Сервер

Получить неподтверждённые транзакции для трансфера

Авторизация

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

Ответы

OK
application/json
JSON
{
"code": 0,
"data": {
"amount": 0,
"amount_usd": 0,
"bc_uniq_key": "string",
"blockchain": "string",
"created_at": "string",
"currency_id": "string",
"from_address": "string",
"id": "string",
"network_created_at": "string",
"to_address": "string",
"tx_hash": "string",
"type": "string",
"updated_at": "string"
},
"message": "string"
}

Примеры

cURL
curl -X GET \
'https://demo.dv.net/api/v1/external/transactions/unconfirmed/transfer' \
 -H "Content-Type: application/json"
JavaScript
fetch('https://demo.dv.net/api/v1/external/transactions/unconfirmed/transfer', {headers:{'Content-Type':'application/json'}})
  .then(response => response.json())
  .then(data => console.log(data));
PHP
<?php
$url = 'https://demo.dv.net/api/v1/external/transactions/unconfirmed/transfer';
$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/transactions/unconfirmed/transfer'

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

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