Get smart transfers statistic
Get smart transfer statistic
GET
/
smart_transfers
/
statistic
TypeScript
const response: Promise<FireblocksResponse<SmartTransferStatistic>> = fireblocks.smartTransfer.getSmartTransferStatistic();CompletableFuture<ApiResponse<SmartTransferStatistic>> response = fireblocks.smartTransfer().getSmartTransferStatistic();response = fireblocks.smart_transfer.get_smart_transfer_statistic();curl --request GET \
--url https://api.fireblocks.io/v1/smart_transfers/statisticconst options = {method: 'GET'};
fetch('https://api.fireblocks.io/v1/smart_transfers/statistic', 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/smart_transfers/statistic",
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/smart_transfers/statistic"
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/smart_transfers/statistic")
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{
"inflow": {
"coins": [
{
"asset": "BTC",
"amount": 15
}
],
"ticketCount": 4
},
"outflow": {
"coins": [
{
"asset": "BTC",
"amount": 15
}
],
"ticketCount": 4
},
"totalActiveTickets": 5,
"totalInactiveTickets": 5
}{
"message": "You do not have permission to execute this action",
"code": 3002
}{
"message": "<string>",
"code": 123
}Response
Smart Transfer ticket statistic returned successfully
Smart transfers statistic
Was this page helpful?
⌘I
TypeScript
const response: Promise<FireblocksResponse<SmartTransferStatistic>> = fireblocks.smartTransfer.getSmartTransferStatistic();CompletableFuture<ApiResponse<SmartTransferStatistic>> response = fireblocks.smartTransfer().getSmartTransferStatistic();response = fireblocks.smart_transfer.get_smart_transfer_statistic();curl --request GET \
--url https://api.fireblocks.io/v1/smart_transfers/statisticconst options = {method: 'GET'};
fetch('https://api.fireblocks.io/v1/smart_transfers/statistic', 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/smart_transfers/statistic",
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/smart_transfers/statistic"
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/smart_transfers/statistic")
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{
"inflow": {
"coins": [
{
"asset": "BTC",
"amount": 15
}
],
"ticketCount": 4
},
"outflow": {
"coins": [
{
"asset": "BTC",
"amount": 15
}
],
"ticketCount": 4
},
"totalActiveTickets": 5,
"totalInactiveTickets": 5
}{
"message": "You do not have permission to execute this action",
"code": 3002
}{
"message": "<string>",
"code": 123
}