List the chains and assets the sweeper watches
curl --request GET \
--url https://staging.apimonaco.xyz/api/v1/sweeper/chainsimport requests
url = "https://staging.apimonaco.xyz/api/v1/sweeper/chains"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://staging.apimonaco.xyz/api/v1/sweeper/chains', 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://staging.apimonaco.xyz/api/v1/sweeper/chains",
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://staging.apimonaco.xyz/api/v1/sweeper/chains"
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://staging.apimonaco.xyz/api/v1/sweeper/chains")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.apimonaco.xyz/api/v1/sweeper/chains")
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{
"chains": [
{
"chainId": 1329,
"name": "sei",
"hub": true,
"assets": [
{
"symbol": "USDC",
"tokenAddress": "0xe15fC38F6D8c56aF07bbCBe3BAf5708A2Bf42392",
"decimals": 6,
"minSweepRaw": "5000000"
}
]
}
]
}Sweeper
List the chains and assets the sweeper watches
The chains and assets the sweeper watches.
One entry per supported chain, each listing the sweepable assets there
with their token addresses and minimum sweep amounts (raw base units;
balances below the minimum wait until a later deposit lifts them past
it). The deposit address returned by register_deposit_address is the
same on every listed chain, and a registered address is watched on all of
them.
Public and unauthenticated; the set changes only with operator configuration.
GET
/
api
/
v1
/
sweeper
/
chains
List the chains and assets the sweeper watches
curl --request GET \
--url https://staging.apimonaco.xyz/api/v1/sweeper/chainsimport requests
url = "https://staging.apimonaco.xyz/api/v1/sweeper/chains"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://staging.apimonaco.xyz/api/v1/sweeper/chains', 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://staging.apimonaco.xyz/api/v1/sweeper/chains",
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://staging.apimonaco.xyz/api/v1/sweeper/chains"
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://staging.apimonaco.xyz/api/v1/sweeper/chains")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.apimonaco.xyz/api/v1/sweeper/chains")
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{
"chains": [
{
"chainId": 1329,
"name": "sei",
"hub": true,
"assets": [
{
"symbol": "USDC",
"tokenAddress": "0xe15fC38F6D8c56aF07bbCBe3BAf5708A2Bf42392",
"decimals": 6,
"minSweepRaw": "5000000"
}
]
}
]
}Response
OK
One entry per chain the sweeper watches
Show child attributes
Show child attributes
Was this page helpful?

