requires mint URL to create this object
Optional
_customRequest: (<T>(options) => Promise<T>)if passed, use custom request implementation for network communication with the mint
Private
Optional
_customif passed, use custom request implementation for network communication with the mint
Private
_mintrequires mint URL to create this object
Checks if specific proofs have already been redeemed
redeemed and unredeemed ordered list of booleans
fetches mints info at the /info endpoint
Ask mint to perform a melt operation. This pays a lightning invoice and destroys tokens matching its amount + fees
Requests the mint to perform token minting after the LN invoice has been paid
outputs (Blinded messages) that can be written
hash (id) used for by the mint to keep track of wether the invoice has been paid yet
serialized blinded signatures
Starts a minting process by requesting an invoice from the mint
Amount requesting for mint.
the mint will create and return a Lightning invoice for the specified amount
Ask mint to perform a split operation
data needed for performing a token split
split tokens
Static
checkChecks if specific proofs have already been redeemed
Optional
customRequest: (<T>(options) => Promise<T>)redeemed and unredeemed ordered list of booleans
Static
checkEstimate fees for a given LN invoice
Payload containing LN invoice that needs to get a fee estimate
Optional
customRequest: (<T>(options) => Promise<T>)estimated Fee
Static
getfetches mints info at the /info endpoint
Optional
customRequest: (<T>(options) => Promise<T>)Static
getGet the mints keysets in no specific order
Optional
customRequest: (<T>(options) => Promise<T>)all the mints past and current keysets.
Static
getGet the mints public keys
Optional
keysetId: stringoptional param to get the keys for a specific keyset. If not specified, the keys from the active keyset are fetched
Optional
customRequest: (<T>(options) => Promise<T>)Static
meltAsk mint to perform a melt operation. This pays a lightning invoice and destroys tokens matching its amount + fees
Optional
customRequest: (<T>(options) => Promise<T>)Static
mintRequests the mint to perform token minting after the LN invoice has been paid
outputs (Blinded messages) that can be written
hash (id) used for by the mint to keep track of wether the invoice has been paid yet
Optional
customRequest: (<T>(options) => Promise<T>)serialized blinded signatures
Static
requestStarts a minting process by requesting an invoice from the mint
Amount requesting for mint.
Optional
customRequest: (<T>(options) => Promise<T>)the mint will create and return a Lightning invoice for the specified amount
Static
restoreOptional
customRequest: (<T>(options) => Promise<T>)Static
splitAsk mint to perform a split operation
data needed for performing a token split
Optional
customRequest: (<T>(options) => Promise<T>)split tokens
Generated using TypeDoc
Class represents Cashu Mint API. This class contains Lower level functions that are implemented by CashuWallet.