Get a list of filtered transfers
curl --request GET \
--url https://li.quest/v1/analytics/transfersimport requests
url = "https://li.quest/v1/analytics/transfers"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://li.quest/v1/analytics/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://li.quest/v1/analytics/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://li.quest/v1/analytics/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://li.quest/v1/analytics/transfers")
.asString();require 'uri'
require 'net/http'
url = URI("https://li.quest/v1/analytics/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{
"transfers": [
{
"transactionId": "0x8c58bf99537331b38f15f5ca9718b6fcf86bdb678a2935cf0ca2106066f07550",
"sending": {
"txHash": "0x37b56ab04df432aa84f14d94f3af2ef65c10141df37ffe60f216c0505fc43178",
"txLink": "https://explorer.zksync.io/tx/0x37b56ab04df432aa84f14d94f3af2ef65c10141df37ffe60f216c0505fc43178",
"amount": "1000000",
"token": {
"address": "0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4",
"chainId": 324,
"symbol": "USDC",
"decimals": 6,
"name": "USD Coin",
"coinKey": "USDC",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
"priceUSD": "1.00"
},
"chainId": 324,
"gasPrice": "250000000",
"gasUsed": "1428505",
"gasToken": {
"address": "0x0000000000000000000000000000000000000000",
"chainId": 324,
"symbol": "ETH",
"decimals": 18,
"name": "ETH",
"coinKey": "ETH",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png",
"priceUSD": "1676.49"
},
"gasAmount": "357126250000000",
"gasAmountUSD": "0.60",
"amountUSD": "1.0000",
"timestamp": 1698076232,
"value": "0"
},
"receiving": {
"txHash": "0x37b56ab04df432aa84f14d94f3af2ef65c10141df37ffe60f216c0505fc43178",
"txLink": "https://explorer.zksync.io/tx/0x37b56ab04df432aa84f14d94f3af2ef65c10141df37ffe60f216c0505fc43178",
"amount": "999255",
"token": {
"address": "0x493257fD37EDB34451f62EDf8D2a0C418852bA4C",
"chainId": 324,
"symbol": "USDT",
"decimals": 6,
"name": "Tether USD",
"coinKey": "USDT",
"logoURI": "https://static.debank.com/image/brise_token/logo_url/0xc7e6d7e08a89209f02af47965337714153c529f0/3c1a718331e468abe1fc2ebe319f6c77.png",
"priceUSD": "1.0000"
},
"chainId": 324,
"gasPrice": "250000000",
"gasUsed": "1428505",
"gasToken": {
"address": "0x0000000000000000000000000000000000000000",
"chainId": 324,
"symbol": "ETH",
"decimals": 18,
"name": "ETH",
"coinKey": "ETH",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png",
"priceUSD": "1676.49"
},
"gasAmount": "357126250000000",
"gasAmountUSD": "0.60",
"amountUSD": "1.0000",
"timestamp": 1698076232,
"value": "0"
},
"lifiExplorerLink": "https://explorer.li.fi/tx/0x37b56ab04df432aa84f14d94f3af2ef65c10141df37ffe60f216c0505fc43178",
"fromAddress": "0x552008c0f6870c2f77e5cc1d2eb9bdff03e30ea0",
"toAddress": "0x552008c0f6870c2f77e5cc1d2eb9bdff03e30ea0",
"tool": "solver3",
"status": "DONE",
"substatus": "COMPLETED",
"substatusMessage": "The transfer is complete."
}
]
}分析
获取过滤的转账列表
此端点返回根据指定条件过滤的转账列表,可用于分析和监控跨链转账活动。
GET
/
v1
/
analytics
/
transfers
Get a list of filtered transfers
curl --request GET \
--url https://li.quest/v1/analytics/transfersimport requests
url = "https://li.quest/v1/analytics/transfers"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://li.quest/v1/analytics/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://li.quest/v1/analytics/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://li.quest/v1/analytics/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://li.quest/v1/analytics/transfers")
.asString();require 'uri'
require 'net/http'
url = URI("https://li.quest/v1/analytics/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{
"transfers": [
{
"transactionId": "0x8c58bf99537331b38f15f5ca9718b6fcf86bdb678a2935cf0ca2106066f07550",
"sending": {
"txHash": "0x37b56ab04df432aa84f14d94f3af2ef65c10141df37ffe60f216c0505fc43178",
"txLink": "https://explorer.zksync.io/tx/0x37b56ab04df432aa84f14d94f3af2ef65c10141df37ffe60f216c0505fc43178",
"amount": "1000000",
"token": {
"address": "0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4",
"chainId": 324,
"symbol": "USDC",
"decimals": 6,
"name": "USD Coin",
"coinKey": "USDC",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
"priceUSD": "1.00"
},
"chainId": 324,
"gasPrice": "250000000",
"gasUsed": "1428505",
"gasToken": {
"address": "0x0000000000000000000000000000000000000000",
"chainId": 324,
"symbol": "ETH",
"decimals": 18,
"name": "ETH",
"coinKey": "ETH",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png",
"priceUSD": "1676.49"
},
"gasAmount": "357126250000000",
"gasAmountUSD": "0.60",
"amountUSD": "1.0000",
"timestamp": 1698076232,
"value": "0"
},
"receiving": {
"txHash": "0x37b56ab04df432aa84f14d94f3af2ef65c10141df37ffe60f216c0505fc43178",
"txLink": "https://explorer.zksync.io/tx/0x37b56ab04df432aa84f14d94f3af2ef65c10141df37ffe60f216c0505fc43178",
"amount": "999255",
"token": {
"address": "0x493257fD37EDB34451f62EDf8D2a0C418852bA4C",
"chainId": 324,
"symbol": "USDT",
"decimals": 6,
"name": "Tether USD",
"coinKey": "USDT",
"logoURI": "https://static.debank.com/image/brise_token/logo_url/0xc7e6d7e08a89209f02af47965337714153c529f0/3c1a718331e468abe1fc2ebe319f6c77.png",
"priceUSD": "1.0000"
},
"chainId": 324,
"gasPrice": "250000000",
"gasUsed": "1428505",
"gasToken": {
"address": "0x0000000000000000000000000000000000000000",
"chainId": 324,
"symbol": "ETH",
"decimals": 18,
"name": "ETH",
"coinKey": "ETH",
"logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png",
"priceUSD": "1676.49"
},
"gasAmount": "357126250000000",
"gasAmountUSD": "0.60",
"amountUSD": "1.0000",
"timestamp": 1698076232,
"value": "0"
},
"lifiExplorerLink": "https://explorer.li.fi/tx/0x37b56ab04df432aa84f14d94f3af2ef65c10141df37ffe60f216c0505fc43178",
"fromAddress": "0x552008c0f6870c2f77e5cc1d2eb9bdff03e30ea0",
"toAddress": "0x552008c0f6870c2f77e5cc1d2eb9bdff03e30ea0",
"tool": "solver3",
"status": "DONE",
"substatus": "COMPLETED",
"substatusMessage": "The transfer is complete."
}
]
}
