Metrics

This endpoint retrieves historical ledger metrics for a given metrics ID.

Metrics IDDescription

metric

Aggregate ledger metrics

type

Transaction type metrics

result

Transaction result metrics

Request

GET /api/v1//metrics/{METRIC_ID}

Example

curl https://api.xrpscan.com/api/v1/metrics/metric

Response

[
  {
    "date": "2013-01-02T00:00:00.000Z",
    "metric": {
      "accounts_created": 3,
      "ledger_count": 4703,
      "ledger_interval": 18.371252392090156,
      "payments_count": 3,
      "transaction_count": 18,
      "tx_per_ledger": 0.0038273442483521157
    }
  },
  {
    "date": "2013-01-03T00:00:00.000Z",
    "metric": {
      "accounts_created": 6,
      "ledger_count": 4780,
      "ledger_interval": 18.07531380753138,
      "payments_count": 7,
      "transaction_count": 10,
      "tx_per_ledger": 0.0020920502092050207
    }
  },
  {
    "date": "2013-01-04T00:00:00.000Z",
    "metric": {
      "accounts_created": 2,
      "ledger_count": 4024,
      "ledger_interval": 21.468687872763418,
      "payments_count": 8,
      "transaction_count": 19,
      "tx_per_ledger": 0.004721669980119284
    }
  },
  ...
]

Last updated