curl --request GET \
--url https://staging.apimonaco.xyz/api/v1/sweeper/deposits/{txHash} \
--header 'X-Monaco-Signature: <api-key>'import requests
url = "https://staging.apimonaco.xyz/api/v1/sweeper/deposits/{txHash}"
headers = {"X-Monaco-Signature": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Monaco-Signature': '<api-key>'}};
fetch('https://staging.apimonaco.xyz/api/v1/sweeper/deposits/{txHash}', 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/deposits/{txHash}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Monaco-Signature: <api-key>"
],
]);
$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/deposits/{txHash}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Monaco-Signature", "<api-key>")
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/deposits/{txHash}")
.header("X-Monaco-Signature", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.apimonaco.xyz/api/v1/sweeper/deposits/{txHash}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Monaco-Signature"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"deposits": [
{
"txHash": "<string>",
"sourceChainId": 8453,
"sourceDomain": 6,
"beneficiary": "<string>",
"clientId": "<string>",
"depositTarget": "SPOT",
"token": "<string>",
"amountRaw": "5000000",
"creditedAmountRaw": "4999000",
"feeChargedRaw": "1000",
"transferType": "FAST",
"status": "ATTESTING",
"failureReason": "REFUNDED",
"sweepTx": "<string>",
"settleTx": "<string>",
"attestedAt": "<string>",
"settledAt": "<string>",
"failedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
]
}Get the status of the caller's sweeper deposits in one transaction
Where the caller’s sweeper deposits made by one transaction are.
Look a deposit up by the hash of the transaction that sent funds to one of the caller’s deposit addresses, on any supported chain. One transaction can carry several such transfers, so the answer is a list (in chain, then log order); it is empty until the sweeper has indexed the transaction, and never includes deposits to anyone else’s address.
Each deposit moves through RECEIVED (indexed; not yet swept — a balance
below the asset’s minimum waits for a later deposit) and then, on the hub
chain, straight to DEPOSITED when the sweep lands. A deposit on another
chain is bridged by CCTP: BURNED (swept off the source chain),
ATTESTING (waiting for Circle’s attestation), ATTESTED, SETTLING
(minted on the hub, being swept into the exchange) and DEPOSITED.
FAILED means the sweep returned the funds to the depositor’s wallet
(failureReason REFUNDED): the exchange was paused, the user is blocked,
or the token is not accepted.
Sweeps move balances rather than individual transfers, so a sweep that
collected several deposits is attributed to each of them first in, first
out. Deposits bridged by a route other than CCTP stay at BURNED.
Authenticated: the deposits returned are those credited to the session’s own address.
curl --request GET \
--url https://staging.apimonaco.xyz/api/v1/sweeper/deposits/{txHash} \
--header 'X-Monaco-Signature: <api-key>'import requests
url = "https://staging.apimonaco.xyz/api/v1/sweeper/deposits/{txHash}"
headers = {"X-Monaco-Signature": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Monaco-Signature': '<api-key>'}};
fetch('https://staging.apimonaco.xyz/api/v1/sweeper/deposits/{txHash}', 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/deposits/{txHash}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Monaco-Signature: <api-key>"
],
]);
$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/deposits/{txHash}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Monaco-Signature", "<api-key>")
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/deposits/{txHash}")
.header("X-Monaco-Signature", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.apimonaco.xyz/api/v1/sweeper/deposits/{txHash}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Monaco-Signature"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"deposits": [
{
"txHash": "<string>",
"sourceChainId": 8453,
"sourceDomain": 6,
"beneficiary": "<string>",
"clientId": "<string>",
"depositTarget": "SPOT",
"token": "<string>",
"amountRaw": "5000000",
"creditedAmountRaw": "4999000",
"feeChargedRaw": "1000",
"transferType": "FAST",
"status": "ATTESTING",
"failureReason": "REFUNDED",
"sweepTx": "<string>",
"settleTx": "<string>",
"attestedAt": "<string>",
"settledAt": "<string>",
"failedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
]
}Authorizations
Ed25519 session-key request signing. Every authenticated request carries three headers: X-Monaco-PublicKey (64-char lowercase-hex session public key), X-Monaco-Timestamp (Unix milliseconds, within 30s of server time), and X-Monaco-Signature (hex ed25519 signature). The signature is over METHOD\npath?query\ntimestamp_ms\nSHA256_hex(body), where the body hash is the SHA-256 of the empty byte string when there is no body. Obtain the session keypair from POST /api/v1/auth/challenge followed by POST /api/v1/auth/verify.
Path Parameters
Response
OK
The caller's deposits made by the transaction, in chain then log order; empty until the sweeper has indexed it
Show child attributes
Show child attributes
Was this page helpful?

