Historical Balance

Definition

This metric returns the historical balance for a chain address or contract. Example of usage of Historical Balance on Sanbase


Access

Free Access


Measuring Unit

Number of tokens


Data Type

Timeseries Data


Frequency

Five-Minute Intervals


API

Available under the historicalBalance name:

query historicalBalance($from: DateTime!, $to: DateTime!, $address: String!, $interval: interval!, $slug: String!, $infrastructure: String) {
historicalBalance(
address: $address
interval: $interval
from: $from
to: $to
selector: {slug: $slug, infrastructure: $infrastructure}
) {
datetime
balance
}
}

Query variables:

{
"address": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
"from": "2021-10-17T21:00:00.000Z",
"interval": "4h",
"metric": "historicalBalance",
"slug": "weth",
"to": "2022-04-18T20:59:59.999Z"
}

Run in explorer