Bulk fetch jettons by addresses (up to 100 per request)
curl --request POST \
--url https://tokens.swap.coffee/api/v3/jettons/by-addresses \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
[
"0:a5d12e31be87867851a28d3ce271203c8fa1a28ae826256e73c506d94d49edad"
]
'import requests
url = "https://tokens.swap.coffee/api/v3/jettons/by-addresses"
payload = ["0:a5d12e31be87867851a28d3ce271203c8fa1a28ae826256e73c506d94d49edad"]
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify(['0:a5d12e31be87867851a28d3ce271203c8fa1a28ae826256e73c506d94d49edad'])
};
fetch('https://tokens.swap.coffee/api/v3/jettons/by-addresses', 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://tokens.swap.coffee/api/v3/jettons/by-addresses",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'0:a5d12e31be87867851a28d3ce271203c8fa1a28ae826256e73c506d94d49edad'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://tokens.swap.coffee/api/v3/jettons/by-addresses"
payload := strings.NewReader("[\n \"0:a5d12e31be87867851a28d3ce271203c8fa1a28ae826256e73c506d94d49edad\"\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://tokens.swap.coffee/api/v3/jettons/by-addresses")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("[\n \"0:a5d12e31be87867851a28d3ce271203c8fa1a28ae826256e73c506d94d49edad\"\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://tokens.swap.coffee/api/v3/jettons/by-addresses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "[\n \"0:a5d12e31be87867851a28d3ce271203c8fa1a28ae826256e73c506d94d49edad\"\n]"
response = http.request(request)
puts response.read_body[
{
"address": "0:a5d12e31be87867851a28d3ce271203c8fa1a28ae826256e73c506d94d49edad",
"decimals": 6,
"created_at": "2023-10-01T12:00:00Z",
"total_supply": "1000000000",
"name": "Tether USD",
"symbol": "USDT",
"mintable": false,
"buy_fee": 123,
"sell_fee": 123,
"contract_interface": "jetton_wallet_tonfun",
"image_url": "https://tokens.swap.coffee/images/USDT.png",
"market_stats": {
"holders_count": 1000,
"price_usd": 1,
"price_change_7d": 0.2,
"price_change_5m": 0.01,
"price_change_1h": 0.02,
"price_change_6h": 0.03,
"price_change_24h": 0.1,
"volume_usd_24h": 1000000,
"tvl_usd": 1000000,
"fdmc": 1000000,
"mcap": 1000000,
"trust_score": 100
},
"labels": [
{
"label": "label",
"label_id": 1,
"created_at": "2023-10-01T12:00:00Z",
"expires_at": "2023-10-01T12:00:00Z"
}
],
"scaled_ui_multiplier": {
"numerator": "<string>",
"denominator": "<string>"
}
}
]{
"error": "<string>"
}Jettons
Bulk fetch jettons by addresses (up to 100 per request)
POST
/
api
/
v3
/
jettons
/
by-addresses
Bulk fetch jettons by addresses (up to 100 per request)
curl --request POST \
--url https://tokens.swap.coffee/api/v3/jettons/by-addresses \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
[
"0:a5d12e31be87867851a28d3ce271203c8fa1a28ae826256e73c506d94d49edad"
]
'import requests
url = "https://tokens.swap.coffee/api/v3/jettons/by-addresses"
payload = ["0:a5d12e31be87867851a28d3ce271203c8fa1a28ae826256e73c506d94d49edad"]
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify(['0:a5d12e31be87867851a28d3ce271203c8fa1a28ae826256e73c506d94d49edad'])
};
fetch('https://tokens.swap.coffee/api/v3/jettons/by-addresses', 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://tokens.swap.coffee/api/v3/jettons/by-addresses",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'0:a5d12e31be87867851a28d3ce271203c8fa1a28ae826256e73c506d94d49edad'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://tokens.swap.coffee/api/v3/jettons/by-addresses"
payload := strings.NewReader("[\n \"0:a5d12e31be87867851a28d3ce271203c8fa1a28ae826256e73c506d94d49edad\"\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://tokens.swap.coffee/api/v3/jettons/by-addresses")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("[\n \"0:a5d12e31be87867851a28d3ce271203c8fa1a28ae826256e73c506d94d49edad\"\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://tokens.swap.coffee/api/v3/jettons/by-addresses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "[\n \"0:a5d12e31be87867851a28d3ce271203c8fa1a28ae826256e73c506d94d49edad\"\n]"
response = http.request(request)
puts response.read_body[
{
"address": "0:a5d12e31be87867851a28d3ce271203c8fa1a28ae826256e73c506d94d49edad",
"decimals": 6,
"created_at": "2023-10-01T12:00:00Z",
"total_supply": "1000000000",
"name": "Tether USD",
"symbol": "USDT",
"mintable": false,
"buy_fee": 123,
"sell_fee": 123,
"contract_interface": "jetton_wallet_tonfun",
"image_url": "https://tokens.swap.coffee/images/USDT.png",
"market_stats": {
"holders_count": 1000,
"price_usd": 1,
"price_change_7d": 0.2,
"price_change_5m": 0.01,
"price_change_1h": 0.02,
"price_change_6h": 0.03,
"price_change_24h": 0.1,
"volume_usd_24h": 1000000,
"tvl_usd": 1000000,
"fdmc": 1000000,
"mcap": 1000000,
"trust_score": 100
},
"labels": [
{
"label": "label",
"label_id": 1,
"created_at": "2023-10-01T12:00:00Z",
"expires_at": "2023-10-01T12:00:00Z"
}
],
"scaled_ui_multiplier": {
"numerator": "<string>",
"denominator": "<string>"
}
}
]{
"error": "<string>"
}Authorizations
Query Parameters
Body
application/json
Response
A list of jettons
Example:
"0:a5d12e31be87867851a28d3ce271203c8fa1a28ae826256e73c506d94d49edad"
Example:
6
Example:
"2023-10-01T12:00:00Z"
Example:
"1000000000"
Example:
"Tether USD"
Example:
"USDT"
Example:
false
Available options:
BLACKLISTED, UNKNOWN, COMMUNITY, WHITELISTED Example:
"jetton_wallet_tonfun"
Example:
"https://tokens.swap.coffee/images/USDT.png"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I