Get account's claiming stats
curl --request GET \
--url https://backend.swap.coffee/v1/claim/{address} \
--header 'X-Api-Key: <api-key>' \
--header 'x-verify: <x-verify>'import requests
url = "https://backend.swap.coffee/v1/claim/{address}"
headers = {
"x-verify": "<x-verify>",
"X-Api-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-verify': '<x-verify>', 'X-Api-Key': '<api-key>'}};
fetch('https://backend.swap.coffee/v1/claim/{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://backend.swap.coffee/v1/claim/{address}",
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>",
"x-verify: <x-verify>"
],
]);
$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://backend.swap.coffee/v1/claim/{address}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-verify", "<x-verify>")
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://backend.swap.coffee/v1/claim/{address}")
.header("x-verify", "<x-verify>")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend.swap.coffee/v1/claim/{address}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-verify"] = '<x-verify>'
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"aggregated": [
{
"available_usd": 123
}
],
"detailed": [
{
"token": {
"address": {
"blockchain": "ton",
"address": "native"
},
"metadata": {
"name": "ARBUZ",
"symbol": "ARBUZ",
"decimals": 123,
"listed": true,
"image_url": "<string>"
}
},
"wallet": "<string>",
"claimed": "<string>",
"locked": "<string>",
"available": "<string>",
"available_usd": 123
}
]
}{
"error": "<string>"
}Claim
Get account's claiming stats
GET
/
v1
/
claim
/
{address}
Get account's claiming stats
curl --request GET \
--url https://backend.swap.coffee/v1/claim/{address} \
--header 'X-Api-Key: <api-key>' \
--header 'x-verify: <x-verify>'import requests
url = "https://backend.swap.coffee/v1/claim/{address}"
headers = {
"x-verify": "<x-verify>",
"X-Api-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-verify': '<x-verify>', 'X-Api-Key': '<api-key>'}};
fetch('https://backend.swap.coffee/v1/claim/{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://backend.swap.coffee/v1/claim/{address}",
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>",
"x-verify: <x-verify>"
],
]);
$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://backend.swap.coffee/v1/claim/{address}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-verify", "<x-verify>")
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://backend.swap.coffee/v1/claim/{address}")
.header("x-verify", "<x-verify>")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend.swap.coffee/v1/claim/{address}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-verify"] = '<x-verify>'
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"aggregated": [
{
"available_usd": 123
}
],
"detailed": [
{
"token": {
"address": {
"blockchain": "ton",
"address": "native"
},
"metadata": {
"name": "ARBUZ",
"symbol": "ARBUZ",
"decimals": 123,
"listed": true,
"image_url": "<string>"
}
},
"wallet": "<string>",
"claimed": "<string>",
"locked": "<string>",
"available": "<string>",
"available_usd": 123
}
]
}{
"error": "<string>"
}Authorizations
Headers
TON proof for the given address
Path Parameters
Example:
"UQCNTO0Nh0Z7QNyRW1BLWfk08f2dAOw4izrx9sO6OUPg4DoV"
Query Parameters
Available options:
all, referral, cashback, staking, rewards_stonfi, rewards_dedust, coffee_dex, boost Required range:
1 <= x <= 100Required range:
x >= 1⌘I