cardano-sl
cardano-sl copied to clipboard
Blockchain Explorer: Return a list of unspent transaction outputs for an address
Currently the blockchain explorer returns only the history of transactions. Take for exaple this URL to the cardanoexplorer API: https://cardanoexplorer.com/api/addresses/summary/DdzFFzCqrhsqWoowEshUnC8iGugze76WDHTyZSbFk9eB2CJaDoeoB5rgh7TY2Lz4kEbT7A2TUHop7mBJSPsZd43NZV5zaxgWe2KTqZC3
You can see the inputs (ctbInputs), outputs (ctbOutputs) but there is no way to tell the spent ones from the unspent ones from the provided data.
Returning the unspent transaction outputs (utxos) would be a useful info for example for a light wallet that interacts with the blockchain explorer and wants to know which inputs can be used for making a transaction. Other cryptocurrencies such as BTC (https://blockchain.info) also provide this kind of information in their blockchain explorers
I suppose that https://cardanoexplorer.com uses the code in the "explorer" folder of this repo. That's why I'm putting it there.
@refi93
hello, first Thank you very much for developing the api for getting utxo.
but this api is too slow. in my servers it takes 5-6s. Is there any way to make this api respond faster?
we abandoned it eventually for that reason and migrated to https://github.com/input-output-hk/project-icarus-backend-service
actually, we made our own fork that emulates the cardano-sl api: https://github.com/vacuumlabs/adalite-backend-service . At the same time, as far as we know, the https://github.com/input-output-hk/project-icarus-importer (the service used to import cardano blockchain data into a postgres db) will break once the BFT is launched (https://iohk.zendesk.com/hc/en-us/articles/360020438074-Newsletter-29th-March-2019-Cardano-1-5-0-and-Cardano-1-5-1-released), but a drop-in replacement for it should (hopefully) be available in time.