Get transaction request for withdrawing collected integrator's fees by chain
curl --request GET \
--url https://li.quest/v1/integrators/{integratorId}/withdraw/{chainId}import requests
url = "https://li.quest/v1/integrators/{integratorId}/withdraw/{chainId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://li.quest/v1/integrators/{integratorId}/withdraw/{chainId}', 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://li.quest/v1/integrators/{integratorId}/withdraw/{chainId}",
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://li.quest/v1/integrators/{integratorId}/withdraw/{chainId}"
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://li.quest/v1/integrators/{integratorId}/withdraw/{chainId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://li.quest/v1/integrators/{integratorId}/withdraw/{chainId}")
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{
"transactionRequest": {
"data": "0x",
"to": "0xbD6C7B0d2f68c2b7805d88388319cfB6EcB50eA9"
}
}集成商费用信息
Get transaction request for withdrawing collected integrator's fees by chain
This endpoint can be used to get transaction request for withdrawing integrator’s collected fees the specified chain. If a list of token addresses is provided, the generated transaction will only withdraw the specified funds.
If there is no collected fees for the provided token’s addresses, the 400 error will be thrown.
The endpoint returns a IntegratorWithdrawalTransactionResponse object which contains the transaction request.
GET
/
v1
/
integrators
/
{integratorId}
/
withdraw
/
{chainId}
Get transaction request for withdrawing collected integrator's fees by chain
curl --request GET \
--url https://li.quest/v1/integrators/{integratorId}/withdraw/{chainId}import requests
url = "https://li.quest/v1/integrators/{integratorId}/withdraw/{chainId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://li.quest/v1/integrators/{integratorId}/withdraw/{chainId}', 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://li.quest/v1/integrators/{integratorId}/withdraw/{chainId}",
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://li.quest/v1/integrators/{integratorId}/withdraw/{chainId}"
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://li.quest/v1/integrators/{integratorId}/withdraw/{chainId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://li.quest/v1/integrators/{integratorId}/withdraw/{chainId}")
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{
"transactionRequest": {
"data": "0x",
"to": "0xbD6C7B0d2f68c2b7805d88388319cfB6EcB50eA9"
}
}请求头
Authentication header, register in the LI.FI Partner Portal (https://portal.li.fi/ ) to get your API Key.

