Get Settlements Transactions
Get settlements transactions from exchange. Learn more about Fireblocks Off Exchange in the following guide. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor.
GET
/
off_exchange
/
settlements
/
transactions
TypeScript
const response: Promise<FireblocksResponse<GetSettlementResponse>> = fireblocks.offExchanges.getOffExchangeSettlementTransactions(offExchangesApiGetOffExchangeSettlementTransactionsRequest);CompletableFuture<ApiResponse<GetSettlementResponse>> response = fireblocks.offExchanges().getOffExchangeSettlementTransactions(mainExchangeAccountId);response = fireblocks.off_exchanges.get_off_exchange_settlement_transactions(main_exchange_account_id);curl --request GET \
--url https://api.fireblocks.io/v1/off_exchange/settlements/transactionsconst options = {method: 'GET'};
fetch('https://api.fireblocks.io/v1/off_exchange/settlements/transactions', 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.fireblocks.io/v1/off_exchange/settlements/transactions",
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://api.fireblocks.io/v1/off_exchange/settlements/transactions"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://api.fireblocks.io/v1/off_exchange/settlements/transactions")
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{
"toExchange": [
{
"assetId": "<string>",
"amount": "<string>",
"dstAddress": "<string>",
"dstTag": "<string>"
}
],
"toCollateral": [
{
"asset": "<string>",
"amount": "<string>",
"srcAddress": "<string>",
"srcTag": "<string>",
"fee": "<string>"
}
]
}{
"message": "<string>",
"code": 123
}Was this page helpful?
Previous
Get the current state of addresses in an access registryReturns the current state of addresses in the specified access registry. Only addresses that are currently active (added but not removed) are included.
Next
⌘I
TypeScript
const response: Promise<FireblocksResponse<GetSettlementResponse>> = fireblocks.offExchanges.getOffExchangeSettlementTransactions(offExchangesApiGetOffExchangeSettlementTransactionsRequest);CompletableFuture<ApiResponse<GetSettlementResponse>> response = fireblocks.offExchanges().getOffExchangeSettlementTransactions(mainExchangeAccountId);response = fireblocks.off_exchanges.get_off_exchange_settlement_transactions(main_exchange_account_id);curl --request GET \
--url https://api.fireblocks.io/v1/off_exchange/settlements/transactionsconst options = {method: 'GET'};
fetch('https://api.fireblocks.io/v1/off_exchange/settlements/transactions', 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.fireblocks.io/v1/off_exchange/settlements/transactions",
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://api.fireblocks.io/v1/off_exchange/settlements/transactions"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://api.fireblocks.io/v1/off_exchange/settlements/transactions")
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{
"toExchange": [
{
"assetId": "<string>",
"amount": "<string>",
"dstAddress": "<string>",
"dstTag": "<string>"
}
],
"toCollateral": [
{
"asset": "<string>",
"amount": "<string>",
"srcAddress": "<string>",
"srcTag": "<string>",
"fee": "<string>"
}
]
}{
"message": "<string>",
"code": 123
}