Look up bridged donation transfers
curl --request GET \
--url https://api.donate.gg/api/v1/donation-transfersimport requests
url = "https://api.donate.gg/api/v1/donation-transfers"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.donate.gg/api/v1/donation-transfers', 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/donation-transfers",
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/donation-transfers"
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/donation-transfers")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.donate.gg/api/v1/donation-transfers")
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[
{
"origin": {
"chainId": 123,
"sender": "<string>",
"depositId": "<string>",
"token": "<string>",
"amount": "<string>",
"fundingCaller": "<string>",
"sourceId": "<string>",
"transactionHash": "<string>"
},
"status": "pending",
"reclaimAt": "<string>",
"destinationChainId": 123,
"donationReceiptId": "<string>",
"reason": "<string>",
"destinationTransactionHash": "<string>"
}
]{
"error": "<string>",
"code": "INVALID_QUERY"
}{
"error": "<string>",
"code": "PROVIDER_UNAVAILABLE"
}Donations
Look up bridged donation transfers
Look up bridged-donation progress by sourceId, or by origin chainId and transactionHash. Public: no API key is needed. Send one to use your organization’s rate limit. New integrations use GET /v2/donation-transfers or GET /v2/donation-transfers/{transferId}.
GET
/
v1
/
donation-transfers
Look up bridged donation transfers
curl --request GET \
--url https://api.donate.gg/api/v1/donation-transfersimport requests
url = "https://api.donate.gg/api/v1/donation-transfers"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.donate.gg/api/v1/donation-transfers', 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/donation-transfers",
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/donation-transfers"
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/donation-transfers")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.donate.gg/api/v1/donation-transfers")
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[
{
"origin": {
"chainId": 123,
"sender": "<string>",
"depositId": "<string>",
"token": "<string>",
"amount": "<string>",
"fundingCaller": "<string>",
"sourceId": "<string>",
"transactionHash": "<string>"
},
"status": "pending",
"reclaimAt": "<string>",
"destinationChainId": 123,
"donationReceiptId": "<string>",
"reason": "<string>",
"destinationTransactionHash": "<string>"
}
]{
"error": "<string>",
"code": "INVALID_QUERY"
}{
"error": "<string>",
"code": "PROVIDER_UNAVAILABLE"
}Headers
Response
OK
Was this page helpful?