JettonsService
getJettonDetails
Jetton details by jetton address
GET
/
v1
/
jettons
/
{address}
getJettonDetails
curl --request GET \
--url https://api.dyor.io/v1/jettons/{address}import requests
url = "https://api.dyor.io/v1/jettons/{address}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.dyor.io/v1/jettons/{address}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dyor.io/v1/jettons/{address}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.dyor.io/v1/jettons/{address}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.dyor.io/v1/jettons/{address}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dyor.io/v1/jettons/{address}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"details": {
"metadata": {
"address": "0:906697a57af1cdb1bc39214b7049ae02b3c92a5b0c342ac61e0eb8bd9304b5f1",
"name": "DYOR Coin",
"symbol": "DYOR",
"decimals": 15,
"image": "https://storage.dyor.io/jettons/EQCQZpelevHNsbw5IUtwSa4Cs8kqWww0KsYeDri9kwS18eCz/image.png",
"description": "DYOR Coin is the utility token by DYOR.io, the biggest analytics platform on TON Blockchain.",
"offchainImage": "https://storage.dyor.io/jettons/EQCQZpelevHNsbw5IUtwSa4Cs8kqWww0KsYeDri9kwS18eCz/image.png",
"offchainDescription": "DYOR Coin is the utility token by DYOR.io, the biggest analytics platform on TON Blockchain.",
"links": [
{
"name": "Chat EN",
"url": "https://t.me/DYORchatEN",
"type": "LINK_TYPE_UNSPECIFIED"
}
],
"createdAt": "2023-11-07T05:31:56Z"
},
"admin": {
"address": "0:0000000000000000000000000000000000000000000000000000000000000000",
"offchainAddress": "<string>"
},
"totalSupply": "299999852059244670506",
"mintable": true,
"modifiedContract": true,
"verification": "JVS_NONE",
"price": {
"value": "1000500000",
"decimals": 9
},
"priceUsd": {
"value": "1000500000",
"decimals": 9
},
"holdersCount": "7351",
"liquidityUsd": {
"value": "1000500000",
"decimals": 9
},
"fdmc": {
"value": "1000500000",
"decimals": 9
},
"trustScore": 100,
"mcap": {
"value": "1000500000",
"decimals": 9
},
"circulatingSupply": "<string>",
"chartPreviews": [
{
"url": "<string>",
"metric": "price",
"period": "month",
"color": "dark"
}
]
},
"addressBook": {}
}{
"code": 3,
"message": "invalid value",
"details": []
}{
"code": 5,
"message": "not found",
"details": []
}{
"code": 8,
"message": "too many requests",
"details": []
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}⌘I
getJettonDetails
curl --request GET \
--url https://api.dyor.io/v1/jettons/{address}import requests
url = "https://api.dyor.io/v1/jettons/{address}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.dyor.io/v1/jettons/{address}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dyor.io/v1/jettons/{address}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.dyor.io/v1/jettons/{address}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.dyor.io/v1/jettons/{address}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dyor.io/v1/jettons/{address}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"details": {
"metadata": {
"address": "0:906697a57af1cdb1bc39214b7049ae02b3c92a5b0c342ac61e0eb8bd9304b5f1",
"name": "DYOR Coin",
"symbol": "DYOR",
"decimals": 15,
"image": "https://storage.dyor.io/jettons/EQCQZpelevHNsbw5IUtwSa4Cs8kqWww0KsYeDri9kwS18eCz/image.png",
"description": "DYOR Coin is the utility token by DYOR.io, the biggest analytics platform on TON Blockchain.",
"offchainImage": "https://storage.dyor.io/jettons/EQCQZpelevHNsbw5IUtwSa4Cs8kqWww0KsYeDri9kwS18eCz/image.png",
"offchainDescription": "DYOR Coin is the utility token by DYOR.io, the biggest analytics platform on TON Blockchain.",
"links": [
{
"name": "Chat EN",
"url": "https://t.me/DYORchatEN",
"type": "LINK_TYPE_UNSPECIFIED"
}
],
"createdAt": "2023-11-07T05:31:56Z"
},
"admin": {
"address": "0:0000000000000000000000000000000000000000000000000000000000000000",
"offchainAddress": "<string>"
},
"totalSupply": "299999852059244670506",
"mintable": true,
"modifiedContract": true,
"verification": "JVS_NONE",
"price": {
"value": "1000500000",
"decimals": 9
},
"priceUsd": {
"value": "1000500000",
"decimals": 9
},
"holdersCount": "7351",
"liquidityUsd": {
"value": "1000500000",
"decimals": 9
},
"fdmc": {
"value": "1000500000",
"decimals": 9
},
"trustScore": 100,
"mcap": {
"value": "1000500000",
"decimals": 9
},
"circulatingSupply": "<string>",
"chartPreviews": [
{
"url": "<string>",
"metric": "price",
"period": "month",
"color": "dark"
}
]
},
"addressBook": {}
}{
"code": 3,
"message": "invalid value",
"details": []
}{
"code": 5,
"message": "not found",
"details": []
}{
"code": 8,
"message": "too many requests",
"details": []
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}