v1

latestOpenAPI 3.0.02026-07-26117198177.4 KB
Protocols

Get protocol statistics for a given time range

post/v1/protocols/stats

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"
}