Giter Site home page Giter Site logo

Comments (2)

cffls avatar cffls commented on July 30, 2024

Hi @robinboening , you are right, the change is currently the last output in any transaction, except when merge_change is set to True. However, this behavior is not exposed or promised as part of any interface, so it might change in the future. If you don't mind, could you tell me why you need this assumption?

from pycardano.

robinboening avatar robinboening commented on July 30, 2024

The reason I am asking is that blockfrost easily presents outdated information about the actual utxo of an address, especially if you send multiple transactions in a short time. This leads to randomly failing transactions. So I decided to keep track of all the utxo myself, without consulting blockfrost. This requires me to store information around new utxos and "change" is one of them. Only after posting the question I noticed it was not really important to ask since I can simply look out for any outputs with my input address.

But thanks for clarifying this is not a promise or part of a public API and could change anytime, so I'll definitely go for checking the addresses instead of relying on it being the last output.

Thanks for the ⚡ response and the great library!

from pycardano.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.