subscan-essentials icon indicating copy to clipboard operation
subscan-essentials copied to clipboard

Cannot get details of old block

Open sudipghimire533 opened this issue 1 year ago • 0 comments

Goal:

get the list of transfer made in block 100 - 1000 where current block number is 1m+

Endpoint used:

/api/v2/scan/transfer

{
    "from_block": 100,
    "to_block": 1000,
    "row": 50,
    "page": 1,
}

Expected

List of transfers made in given block range.

[
  {
      'extrinsic_index': 100-2,
      // ....
  },
  {
      'extrinsic_index': 101-2,
      // ....
  }
]

Actual response

[
  {
      'extrinsic_index': 1563546-2,
      // ....
  },
  {
      'extrinsic_index': 1563547-2,
      // ....
  }
]

Subscan is connected to archive node so state should also be present in the underlying node subscan connects to.

sudipghimire533 avatar Apr 21 '23 08:04 sudipghimire533