cardano-sl icon indicating copy to clipboard operation
cardano-sl copied to clipboard

Lack of address history when calling API via cardano-sl fullnode

Open congle-ibl opened this issue 6 years ago • 2 comments

Hi all,

I'm running cardano-sl fullnode with latest release version 3.2.0. But I'm in trouble when getting address history.

For example, when I search address DdzFFzCqrhshFD5iEaNcpKpmawN72HWTuqV8MiVc1x8hRXzCtZbx11QbDm6Vce7GzW4YASJfsSnAFRFvitwpBCDECrSGzvboWP1Jydqd on cardanoexplorer.com, it shows 40 transactions But when calling API via cardano-sl fullnode, like this:

http://local_IP:8100/api/addresses/summary/DdzFFzCqrhshFD5iEaNcpKpmawN72HWTuqV8MiVc1x8hRXzCtZbx11QbDm6Vce7GzW4YASJfsSnAFRFvitwpBCDECrSGzvboWP1Jydqd

It only shows 8 transactions.

Please help to take a look and give me some advice to correct it. Thank you so much for your time.

congle-ibl avatar Dec 12 '19 06:12 congle-ibl

There's a bug in address summary endpoint that is nontrivial to fix (essentially requires a full rewrite of the logic used to track addresses for this endpoint). We worked around this using a postgresql database dump to query address summary on mainnet, as a cache updated every 20 seconds (1 slot) on mainnet and is why it is correct. I highly recommend you check out the new cardano-explorer built on the new node. It's much more powerful than the legacy explorer and supports the same endpoints, as well as gives you the option to query the database directly for more advanced queries.

disassembler avatar Dec 12 '19 06:12 disassembler

Hi @disassembler

It's so great! Thank you so much for your quickly support.

congle-ibl avatar Dec 12 '19 06:12 congle-ibl