curl --request GET \
--url https://api.rhino.fi/bridge/history-cursor/user \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.rhino.fi/bridge/history-cursor/user"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.rhino.fi/bridge/history-cursor/user', 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.rhino.fi/bridge/history-cursor/user",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.rhino.fi/bridge/history-cursor/user"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.rhino.fi/bridge/history-cursor/user")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rhino.fi/bridge/history-cursor/user")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"_id": "<string>",
"userId": "<string>",
"chainIn": "<string>",
"chainOut": "<string>",
"amountIn": "<string>",
"amountInUsd": 123,
"amountOut": "<string>",
"amountOutUsd": 123,
"amountNative": "<string>",
"amountNativeUsd": 123,
"fee": "<string>",
"feeUsd": 123,
"gasFee": "<string>",
"gasFeeUsd": 123,
"platformFee": "<string>",
"platformFeeUsd": 123,
"percentageFee": "<string>",
"percentageFeeUsd": 123,
"sourceGasFee": "<string>",
"sourceGasFeeUsd": 123,
"sponsoredFees": {
"fee": "<string>",
"feeUsd": 123,
"gasFee": "<string>",
"gasFeeUsd": 123,
"platformFee": "<string>",
"platformFeeUsd": 123,
"percentageFee": "<string>",
"percentageFeeUsd": 123,
"sourceGasFee": "<string>",
"sourceGasFeeUsd": 123
},
"recipient": "<string>",
"depositor": "<string>",
"createdAt": "<string>",
"commitmentDate": "<string>",
"token": "<string>",
"usdPrice": 123,
"state": "PENDING",
"speed": "fast",
"estimatedDuration": 123,
"postBridgeData": {
"_tag": "extended",
"vaultId": 4503599627370495
},
"flowCredits": 123,
"chain": "<string>",
"depositAddress": "<string>",
"_tag": "bridge"
}
],
"nextPageToken": "<string>"
}{
"_tag": "InvalidJwt",
"message": "<string>"
}{
"_tag": "Unauthorized",
"message": "<string>"
}{
"_tag": "InvalidRequest",
"message": "<string>"
}Obtain a list of previously generated swapping and/or bridging quotes
This endpoint provides a full history of a user’s bridging and swapping activity. This includes commits for quotes generated through the POST /quote/bridge-swap/user endpoint and submitted through POST /quote/commit/{quoteId}, as well as bridges initiated via a Smart Deposit Address.
curl --request GET \
--url https://api.rhino.fi/bridge/history-cursor/user \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.rhino.fi/bridge/history-cursor/user"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.rhino.fi/bridge/history-cursor/user', 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.rhino.fi/bridge/history-cursor/user",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.rhino.fi/bridge/history-cursor/user"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.rhino.fi/bridge/history-cursor/user")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rhino.fi/bridge/history-cursor/user")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"_id": "<string>",
"userId": "<string>",
"chainIn": "<string>",
"chainOut": "<string>",
"amountIn": "<string>",
"amountInUsd": 123,
"amountOut": "<string>",
"amountOutUsd": 123,
"amountNative": "<string>",
"amountNativeUsd": 123,
"fee": "<string>",
"feeUsd": 123,
"gasFee": "<string>",
"gasFeeUsd": 123,
"platformFee": "<string>",
"platformFeeUsd": 123,
"percentageFee": "<string>",
"percentageFeeUsd": 123,
"sourceGasFee": "<string>",
"sourceGasFeeUsd": 123,
"sponsoredFees": {
"fee": "<string>",
"feeUsd": 123,
"gasFee": "<string>",
"gasFeeUsd": 123,
"platformFee": "<string>",
"platformFeeUsd": 123,
"percentageFee": "<string>",
"percentageFeeUsd": 123,
"sourceGasFee": "<string>",
"sourceGasFeeUsd": 123
},
"recipient": "<string>",
"depositor": "<string>",
"createdAt": "<string>",
"commitmentDate": "<string>",
"token": "<string>",
"usdPrice": 123,
"state": "PENDING",
"speed": "fast",
"estimatedDuration": 123,
"postBridgeData": {
"_tag": "extended",
"vaultId": 4503599627370495
},
"flowCredits": 123,
"chain": "<string>",
"depositAddress": "<string>",
"_tag": "bridge"
}
],
"nextPageToken": "<string>"
}{
"_tag": "InvalidJwt",
"message": "<string>"
}{
"_tag": "Unauthorized",
"message": "<string>"
}{
"_tag": "InvalidRequest",
"message": "<string>"
}Query Parameters
The field that results will be sorted by. Either "createdAt" (sorting by the datetime that the quote was created) or "updatedAt" (sorting by the datetime that the quote was last updated). Must be used in conjunction with sortDirection.
createdAt, updatedAt "createdAt"
Optional filter by the status of the bridge/bridge+swap transaction. One of: "PENDING" (the quote has been committed but the deposit has not yet been received and accepted for processing), "ACCEPTED" (the deposit has been accepted and the transaction is being processed onchain), or "EXECUTED" (fully processed onchain).
PENDING, ACCEPTED, EXECUTED "PENDING"
Response
Success