Get all jettons owned by the account
curl --request GET \
--url https://tokens.swap.coffee/api/v3/accounts/{address}/jettons \
--header 'X-Api-Key: <api-key>'import requests
url = "https://tokens.swap.coffee/api/v3/accounts/{address}/jettons"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://tokens.swap.coffee/api/v3/accounts/{address}/jettons', 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/accounts/{address}/jettons",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://tokens.swap.coffee/api/v3/accounts/{address}/jettons"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://tokens.swap.coffee/api/v3/accounts/{address}/jettons")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://tokens.swap.coffee/api/v3/accounts/{address}/jettons")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
{
"balance": "1000000000",
"jetton_address": "0:a5d12e31be87867851a28d3ce271203c8fa1a28ae826256e73c506d94d49edad",
"jetton_wallet": "0:a5d12e31be87867851a28d3ce271203c8fa1a28ae826256e73c506d94d49edad",
"jetton": {
"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>"
}Accounts
Get all jettons owned by the account
GET
/
api
/
v3
/
accounts
/
{address}
/
jettons
Get all jettons owned by the account
curl --request GET \
--url https://tokens.swap.coffee/api/v3/accounts/{address}/jettons \
--header 'X-Api-Key: <api-key>'import requests
url = "https://tokens.swap.coffee/api/v3/accounts/{address}/jettons"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://tokens.swap.coffee/api/v3/accounts/{address}/jettons', 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/accounts/{address}/jettons",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://tokens.swap.coffee/api/v3/accounts/{address}/jettons"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://tokens.swap.coffee/api/v3/accounts/{address}/jettons")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://tokens.swap.coffee/api/v3/accounts/{address}/jettons")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
{
"balance": "1000000000",
"jetton_address": "0:a5d12e31be87867851a28d3ce271203c8fa1a28ae826256e73c506d94d49edad",
"jetton_wallet": "0:a5d12e31be87867851a28d3ce271203c8fa1a28ae826256e73c506d94d49edad",
"jetton": {
"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>"
}⌘I