Skip to content

add method field to quote responses, closes #378#387

Open
callebtc wants to merge 1 commit into
mainfrom
add-method-field-to-quote-responses
Open

add method field to quote responses, closes #378#387
callebtc wants to merge 1 commit into
mainfrom
add-method-field-to-quote-responses

Conversation

@callebtc

@callebtc callebtc commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

@KvngMikey KvngMikey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

robwoodgate added a commit to robwoodgate/cashu-ts that referenced this pull request Jun 12, 2026
Implements cashubtc/nuts#387: every mint and melt quote response
carries a method field. The wallet always knows the method from the
request endpoint, so normalization populates it when the mint omits it
(no mint ships the field yet) and throws when a reported method
disagrees with the endpoint. Once mints implement it, NUT-17 generic
mint_quote/melt_quote notifications become routable by method.
@robwoodgate

robwoodgate commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Implemented in cashubtc/cashu-ts#698 - wallet backfills method from the endpoint for mints that don't send it yet.

robwoodgate added a commit to robwoodgate/cashu-ts that referenced this pull request Jun 12, 2026
Implements cashubtc/nuts#387: every mint and melt quote response
carries a method field. The wallet always knows the method from the
request endpoint, so normalization populates it when the mint omits it
(no mint ships the field yet) and throws when a reported method
disagrees with the endpoint. Once mints implement it, NUT-17 generic
mint_quote/melt_quote notifications become routable by method.
robwoodgate added a commit to robwoodgate/cashu-ts that referenced this pull request Jun 12, 2026
Implements cashubtc/nuts#387: every mint and melt quote response
carries a method field. The wallet always knows the method from the
request endpoint, so normalization populates it when the mint omits it
(no mint ships the field yet) and throws when a reported method
disagrees with the endpoint. Once mints implement it, NUT-17 generic
mint_quote/melt_quote notifications become routable by method.
robwoodgate added a commit to robwoodgate/nuts that referenced this pull request Jun 15, 2026
Consolidates review feedback on the generic payment method PR. Scoped to
the delta NOT covered by cashubtc#377 (accounting fields) or cashubtc#387 (method), so
those can merge independently:

- common mint quote request: optional amount, description, pubkey
- common melt quote request: optional amount
- common mint quote response: expiry, optional pubkey
- common melt quote response: request, optional fee_reserve
- custom mint quotes MUST carry the accounting fields
- custom melt quotes MUST use the standard UNPAID/PENDING/PAID states
@KvngMikey

Copy link
Copy Markdown
Contributor

implemented in cashubtc/nutshell#1055

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

NUT-29: add method field for mint and melt quotes, web socket notifications

3 participants