Get the current donation fee
curl --request GET \
--url https://api.donate.gg/api/v1/configs/{configId}/feeimport requests
url = "https://api.donate.gg/api/v1/configs/{configId}/fee"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.donate.gg/api/v1/configs/{configId}/fee', 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.donate.gg/api/v1/configs/{configId}/fee",
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.donate.gg/api/v1/configs/{configId}/fee"
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.donate.gg/api/v1/configs/{configId}/fee")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.donate.gg/api/v1/configs/{configId}/fee")
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{
"feeBps": "<string>",
"basis": "legacy_config",
"policyVersion": "<string>",
"evaluatedSlot": "<string>",
"activationSlot": "<string>"
}{
"error": "<string>",
"code": "VALIDATION_ERROR",
"issues": [
null
]
}{
"error": "<string>",
"code": "NOT_FOUND"
}{
"error": "<string>",
"code": "PROVIDER_UNAVAILABLE"
}Configs
Get the current donation fee
Resolve the current fee for a config and original on-chain attribution address. Supports native Solana and EVM sources activated for Solana settlement. The observed tip is preserved and the fee amount is capped at gross minus tip. This estimate is not a rate lock. Native Solana donations use their donation event slot; bridged EVM donations use the finalized Solana USDC delivery slot, not the source block or later admission slot. Public: no API key is needed. Send one to use your organization’s rate limit. New integrations use GET /v2/configs/{configId}/fee.
GET
/
v1
/
configs
/
{configId}
/
fee
Get the current donation fee
curl --request GET \
--url https://api.donate.gg/api/v1/configs/{configId}/feeimport requests
url = "https://api.donate.gg/api/v1/configs/{configId}/fee"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.donate.gg/api/v1/configs/{configId}/fee', 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.donate.gg/api/v1/configs/{configId}/fee",
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.donate.gg/api/v1/configs/{configId}/fee"
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.donate.gg/api/v1/configs/{configId}/fee")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.donate.gg/api/v1/configs/{configId}/fee")
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{
"feeBps": "<string>",
"basis": "legacy_config",
"policyVersion": "<string>",
"evaluatedSlot": "<string>",
"activationSlot": "<string>"
}{
"error": "<string>",
"code": "VALIDATION_ERROR",
"issues": [
null
]
}{
"error": "<string>",
"code": "NOT_FOUND"
}{
"error": "<string>",
"code": "PROVIDER_UNAVAILABLE"
}Headers
Was this page helpful?