Transaction Metrics Historical
curl --request GET \
--url https://api.amberdata.com/blockchains/transactions/metrics/historical \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/blockchains/transactions/metrics/historical"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.amberdata.com/blockchains/transactions/metrics/historical', 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.amberdata.com/blockchains/transactions/metrics/historical",
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-api-key: <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://api.amberdata.com/blockchains/transactions/metrics/historical"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<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://api.amberdata.com/blockchains/transactions/metrics/historical")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/blockchains/transactions/metrics/historical")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": 200,
"title": "OK",
"description": "Successful request",
"payload": {
"records": [
{
"timestamp": "2022-11-08T00:00:00.000Z",
"confirmationTimeAverage": "951.8686480374737522",
"feesAverage": "5121434280204636.9542",
"feesAverageUSD": "8.02809306",
"feesTotal": "5797709434037098854730",
"feesTotalUSD": "9088186.68973826",
"gasPriceAverage": "56990615164.07242714",
"pendingValueTotal": "6433693181859762014619483",
"pendingTransactionsTotal": "2817570",
"transactionsTotal": "1132048",
"transfersTotal": "1295600",
"valueAverage": "4736497943222167371",
"valueAverageUSD": "7424.68694806",
"valueTotal": "5361943023628768128505703",
"valueTotalUSD": "8405102010.18226"
}
],
"metadata": {
"feesUnit": "wei",
"valueUnit": "wei"
},
"totalRecords": 744
}
}"Unauthorized"Metrics
Transaction Metrics Historical
Retrieve metrics for historical confirmed transactions for a given blockchain.
GET
/
transactions
/
metrics
/
historical
Transaction Metrics Historical
curl --request GET \
--url https://api.amberdata.com/blockchains/transactions/metrics/historical \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/blockchains/transactions/metrics/historical"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.amberdata.com/blockchains/transactions/metrics/historical', 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.amberdata.com/blockchains/transactions/metrics/historical",
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-api-key: <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://api.amberdata.com/blockchains/transactions/metrics/historical"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<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://api.amberdata.com/blockchains/transactions/metrics/historical")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/blockchains/transactions/metrics/historical")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": 200,
"title": "OK",
"description": "Successful request",
"payload": {
"records": [
{
"timestamp": "2022-11-08T00:00:00.000Z",
"confirmationTimeAverage": "951.8686480374737522",
"feesAverage": "5121434280204636.9542",
"feesAverageUSD": "8.02809306",
"feesTotal": "5797709434037098854730",
"feesTotalUSD": "9088186.68973826",
"gasPriceAverage": "56990615164.07242714",
"pendingValueTotal": "6433693181859762014619483",
"pendingTransactionsTotal": "2817570",
"transactionsTotal": "1132048",
"transfersTotal": "1295600",
"valueAverage": "4736497943222167371",
"valueAverageUSD": "7424.68694806",
"valueTotal": "5361943023628768128505703",
"valueTotalUSD": "8405102010.18226"
}
],
"metadata": {
"feesUnit": "wei",
"valueUnit": "wei"
},
"totalRecords": 744
}
}"Unauthorized"Authorizations
Headers
The id of the blockchain
Available options:
bitcoin-mainnet, bitcoin-abc-mainnet, ethereum-mainnet, litecoin-mainnet Query Parameters
Filter by data after this date.
Filter by data before this date.
[Optional] Time format of the timestamps in the return payload.
[Defaults] milliseconds | ms* | iso | iso8601 | hr | human_readable
Was this page helpful?
⌘I