Historical Balance

    Definition

    Metric returns historical balance for a chain address / contract Example of usage 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:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    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:

    1
    2
    3
    4
    5
    6
    7
    8
    {
      "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