Closed callebtc closed 1 month ago
when would a quote be in a PENDING
state?
when would a quote be in a
PENDING
state?
When it's currently being issued (i.e. in a mint transaction). The pending state can be used by the mint to prevent race conditions.
LFG
What
This change to NUT-04 deprecates the
paid
field toPostMintQuoteBolt11Response
and replaces it with a newstate
field that is a string enum with four possible values:UNPAID
,PAID
, andISSUED
."UNPAID"
means that the quote's request has not been paid yet."PAID"
means that the request has been paid."ISSUED"
means that the quote has already been issued.Implementation
Mints
state
field toPostMintQuoteBolt11Response
paid
field around until all wallets updateWallets
paid
field withstate
As long as
paid
is kept around, wallets can still function the same way as before, also when thePOST /v1/mint/bolt11
is changed (since JSON is "backwards compatible" to new fields).Tracking progress: