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
Gets an existing melt quote.
Quote ID
Gets an existing mint quote from the mint.
Quote ID
the mint will create and return a Lightning invoice for the specified amount
Requests a new melt quote from the mint.
Requests a new mint quote from the mint.
Payload for creating a new mint quote
the mint will create and return a new mint quote containing a payment request for the specified amount and unit
fetches mints info at the /info endpoint
Get the mints keysets in no specific order
all the mints past and current keysets.
Get the mints public keys
Optional
keysetId: stringoptional param to get the keys for a specific keyset. If not specified, the keys from all active keysets are fetched
Optional
mintUrl: stringthe mints public keys
Ask mint to perform a melt operation. This pays a lightning invoice and destroys tokens matching its amount + fees
Mints new tokens by requesting blind signatures on the provided outputs.
Payload containing the outputs to get blind signatures on
serialized blinded signatures
Performs a swap operation with ecash inputs and outputs.
payload containing inputs and outputs
signed outputs
Static
checkChecks if specific proofs have already been redeemed
Optional
customRequest: (<T>(options) => Promise<T>)redeemed and unredeemed ordered list of booleans
Static
checkGets an existing melt quote.
Quote ID
Optional
customRequest: (<T>(options) => Promise<T>)Static
checkGets an existing mint quote from the mint.
Quote ID
Optional
customRequest: (<T>(options) => Promise<T>)the mint will create and return a Lightning invoice for the specified amount
Static
createRequests a new melt quote from the mint.
Optional
customRequest: (<T>(options) => Promise<T>)Static
createRequests a new mint quote from the mint.
Payload for creating a new mint quote
Optional
customRequest: (<T>(options) => Promise<T>)the mint will create and return a new mint quote containing a payment request for the specified amount and unit
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 all active keysets are fetched
Optional
customRequest: (<T>(options) => Promise<T>)Static
meltRequests the mint to pay for a Bolt11 payment request by providing ecash as inputs to be spent. The inputs contain the amount and the fee_reserves for a Lightning payment. The payload can also contain blank outputs in order to receive back overpaid Lightning fees.
Optional
customRequest: (<T>(options) => Promise<T>)Static
mintMints new tokens by requesting blind signatures on the provided outputs.
Payload containing the outputs to get blind signatures on
Optional
customRequest: (<T>(options) => Promise<T>)serialized blinded signatures
Static
restoreOptional
customRequest: (<T>(options) => Promise<T>)Static
splitPerforms a swap operation with ecash inputs and outputs.
payload containing inputs and outputs
Optional
customRequest: (<T>(options) => Promise<T>)signed outputs
Generated using TypeDoc
Class represents Cashu Mint API. This class contains Lower level functions that are implemented by CashuWallet.