get address coin balance history
curl --request GET \
--url https://eth.blockscout.com/api/v2/addresses/{address_hash}/coin-balance-historyimport requests
url = "https://eth.blockscout.com/api/v2/addresses/{address_hash}/coin-balance-history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://eth.blockscout.com/api/v2/addresses/{address_hash}/coin-balance-history', 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://eth.blockscout.com/api/v2/addresses/{address_hash}/coin-balance-history",
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://eth.blockscout.com/api/v2/addresses/{address_hash}/coin-balance-history"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://eth.blockscout.com/api/v2/addresses/{address_hash}/coin-balance-history")
.asString();require 'uri'
require 'net/http'
url = URI("https://eth.blockscout.com/api/v2/addresses/{address_hash}/coin-balance-history")
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{
"items": [
{
"block_number": 1584930,
"block_timestamp": "2022-08-02T07:18:05.000000Z",
"delta": "-234959404",
"value": "100232323",
"transaction_hash": "0x1f610ff9c1efad6b5a8bb6afcc0786cd7343f03f9a61e2544fcff908cedee924"
}
],
"next_page_params": {
"block_number": 27736955,
"items_count": 50
}
}API Reference
get address coin balance history
Deprecation Notice: Per instance endpoints will be deprecated soon in favor of PRO API endpoints. Please see the PRO API reference page for information.
GET
/
addresses
/
{address_hash}
/
coin-balance-history
get address coin balance history
curl --request GET \
--url https://eth.blockscout.com/api/v2/addresses/{address_hash}/coin-balance-historyimport requests
url = "https://eth.blockscout.com/api/v2/addresses/{address_hash}/coin-balance-history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://eth.blockscout.com/api/v2/addresses/{address_hash}/coin-balance-history', 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://eth.blockscout.com/api/v2/addresses/{address_hash}/coin-balance-history",
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://eth.blockscout.com/api/v2/addresses/{address_hash}/coin-balance-history"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://eth.blockscout.com/api/v2/addresses/{address_hash}/coin-balance-history")
.asString();require 'uri'
require 'net/http'
url = URI("https://eth.blockscout.com/api/v2/addresses/{address_hash}/coin-balance-history")
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{
"items": [
{
"block_number": 1584930,
"block_timestamp": "2022-08-02T07:18:05.000000Z",
"delta": "-234959404",
"value": "100232323",
"transaction_hash": "0x1f610ff9c1efad6b5a8bb6afcc0786cd7343f03f9a61e2544fcff908cedee924"
}
],
"next_page_params": {
"block_number": 27736955,
"items_count": 50
}
}Was this page helpful?
⌘I