Skip to content

Get extended list of store currencies

GET
/v1/external/store/currencies-extended
Server

Get extended list of store currencies grouped by tokens and blockchains

Authorizations

XApiKey

Store API key

TypeAPI Key (header: X-Api-Key)

Parameters

Query Parameters

api_key

Store API key

Typestring

Responses

OK
*/*
JSON
{
"code": 0,
"data": {
"blockchains": [
{
"currencies": [
"string"
],
"icon": {
"icon_128": "string",
"icon_512": "string",
"icon_svg": "string"
},
"name": "string",
"tokens": [
"string"
]
}
],
"currencies": [
{
"blockchain": "string",
"blockchain_icon": {
"icon_128": "string",
"icon_512": "string",
"icon_svg": "string"
},
"code": "string",
"contract_address": "string",
"explorer_link": "string",
"has_balance": true,
"icon": {
"icon_128": "string",
"icon_512": "string",
"icon_svg": "string"
},
"id": "string",
"min_confirmation": 0,
"name": "string",
"token_icon": {
"icon_128": "string",
"icon_512": "string",
"icon_svg": "string"
}
}
],
"tokens": [
{
"blockchains": [
"string"
],
"currencies": [
"string"
],
"icon": {
"icon_128": "string",
"icon_512": "string",
"icon_svg": "string"
},
"name": "string"
}
]
},
"message": "string"
}

Samples

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

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

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