Replies: 2 comments 1 reply
-
That's a feature / options I was considering to add, waiting for a someone to have a use-case for it. At the moment, it's pretty easy to check whether a UTxO still exist using Ogmios and an output reference. I had in mind though to allow through a flag, to automatically prune the history in Kupo to only keep the edge of the UTxO graph. Though, may I ask, if you need such a feature, what are you missing from the UTxO query from Ogmios / cardano-node? |
Beta Was this translation helpful? Give feedback.
-
I have similar requirement in cardano-client Java library where utxos for an address are fetched from Kupo to build transaction. I understand that it's possible to verify if an output is spent or not through Ogmios. But I am wondering if we can avoid that extra call(s). For example, I am getting around ~2942 outputs from the following testnet address. But only 3 outputs are unspent. addr_test1qzx9hu8j4ah3auytk0mwcupd69hpc52t0cw39a65ndrah86djs784u92a3m5w475w3w35tyd6v3qumkze80j8a6h5tuqq5xe8y |
Beta Was this translation helpful? Give feedback.
-
Currently when I query Kupo for a match using an Address it will return every UTXO associated with that address, whether that UTXO has been spend or not.
I am not sure if Kupo has a mechanism to keep track of spend UTXOs or not.
If there is no such mechanism would that be something that can be build using Ogmios or Oura to keep track when a UTXO was used as an input and then just prune the Kupo sqlite db of it?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions