Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

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

Open
congle-ibl opened this issue Dec 12, 2019 · 2 comments
Open

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

congle-ibl opened this issue Dec 12, 2019 · 2 comments

Comments

@congle-ibl
Copy link

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.

@disassembler
Copy link
Contributor

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.

@congle-ibl
Copy link
Author

Hi @disassembler

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants