Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NUT-04/05: add amount, unit, request to quotes #235

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

callebtc
Copy link
Contributor

@callebtc callebtc commented Mar 6, 2025

This mandatory change of NUT-04 and NUT-05 adds new fields to the MintQuoteResponse and MeltQuoteResponse objects to make it easier for stateless clients to use the API. Mints should already have these fields available in their database.

We (I) wrongfully chose not to provide them back to the clients thinking we're smart and want to save some tiny amount of bandwidth, turns out we weren't so smart after all!

MintQuoteResponse

MintQuoteResponse now contains the amount and unit for the mint operation that was previously provided by the client in the MintQuoteRequest

MeltQuoteResponse

MeltQuoteResponse now contains the unit and the request for the melt operation that was previously provided by the client in the MeltQuoteRequest

Fixes #232

Tracking mint implementations

@callebtc callebtc changed the title Nut-04/05: add amount, unit, request to quotes NUT-04/05: add amount, unit, request to quotes Mar 6, 2025
Copy link
Contributor

@Egge21M Egge21M left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK!

@lescuer97
Copy link
Contributor

I think this is very reasonable

Copy link
Collaborator

@thesimplekid thesimplekid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Successfully merging this pull request may close these issues.

NUT-04: MintQuote response should contain amount and unit
5 participants