Coder Social home page Coder Social logo

Comments (4)

jcnelson avatar jcnelson commented on July 30, 2024

How about, since people apparently use this endpoint, we instead fix /v2/fees/transfer to do what it's supposed to do?

from stacks-core.

diwakergupta avatar diwakergupta commented on July 30, 2024

How about, since people apparently use this endpoint, we instead fix /v2/fees/transfer to do what it's supposed to do?

From being on the receiving end of a lot of questions / tech support requests around this, I'll just say one endpoint is better / less confusing than two.

from stacks-core.

jcnelson avatar jcnelson commented on July 30, 2024

If you're seeing people query this endpoint, then I think it's safe to assume that the questions / tech support requests aren't going to go away if we just disable it. They'll just ask why it broke.

The endpoint is indeed broken insofar as it returns incorrect data. However, it's straightforward to make it return correct data, since it can rely on the same machinery that /v2/fees/transaction uses. Also, it's a lot less clunky than /v2/fees/transaction if you're just sending a token-transfer -- it'll give you a scalar fee in response to a body-less GET request, as opposed to requiring you to serialize and POST your transaction to the node and then parse a JSON response.

I'll go ahead and fix it.

from stacks-core.

jcnelson avatar jcnelson commented on July 30, 2024

Fixed: #4754

from stacks-core.

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.