Protocols

Get protocol statistics for a given time range

post/v1/protocols/stats

Request

  • Base URL
    https://api.range.org
  • Auth
    • API key in header X-API-KEY
    • or API key in header X-API-KEY

Request body

beginTimestampstring required

Start timestamp for the query range

endTimestampstring required

End timestamp for the query range

protocolstring required

Protocol name to filter by

Example request

{
  "beginTimestamp": "2024-04-09T00:00:00Z",
  "endTimestamp": "2024-04-10T00:00:00Z",
  "protocol": "interchain_payments"
}

Response

Returns protocol statistics including transaction counts and denomination sums

totalTransactionsnumber required

Total number of transactions

totalUsdnumber required

Total amount for all denominations in USD

protocolstring required

Protocol name

Example response

{
  "totalTransactions": 1234,
  "totalUsd": 1000.5,
  "denomSums": [
    {
      "denom": "uatom",
      "total": 1000.5,
      "totalUsd": 1000.5
    }
  ],
  "timeRange": {
    "start": "2024-04-09T00:00:00Z",
    "end": "2024-04-10T00:00:00Z"
  },
  "protocol": "interchain_payments"
}

Changes

No recorded changes to this operation across all 1 revision of this API.