Skip to main content

MintProofOptions

@cashu/cashu-ts


@cashu/cashu-ts / MintProofOptions

Type Alias: MintProofOptions

MintProofOptions = object

Defined in: cashu-ts/src/model/types/index.ts:107

Param

Optional parameters for configuring the Mint Proof operation:

  • keysetId: override the keysetId derived from the current mintKeys with a custom one. This should be a keyset that was fetched from the /keysets endpoint
  • outputAmounts: optionally specify the output's amounts to keep and to send.
  • counter: optionally set counter to derive secret deterministically. CashuWallet class must be initialized with seed phrase to take effect
  • proofsWeHave: optionally provide all currently stored proofs of this mint. Cashu-ts will use them to derive the optimal output amounts
  • pubkey: optionally locks ecash to pubkey. Will not be deterministic, even if counter is set!

Properties

counter?

optional counter: number

Defined in: cashu-ts/src/model/types/index.ts:111


keysetId?

optional keysetId: string

Defined in: cashu-ts/src/model/types/index.ts:108


outputAmounts?

optional outputAmounts: OutputAmounts

Defined in: cashu-ts/src/model/types/index.ts:109


outputData?

optional outputData: OutputDataLike[] | OutputDataFactory

Defined in: cashu-ts/src/model/types/index.ts:113


p2pk?

optional p2pk: object

Defined in: cashu-ts/src/model/types/index.ts:114

locktime?

optional locktime: number

pubkey

pubkey: string

refundKeys?

optional refundKeys: string[]


proofsWeHave?

optional proofsWeHave: Proof[]

Defined in: cashu-ts/src/model/types/index.ts:110


pubkey?

optional pubkey: string

Defined in: cashu-ts/src/model/types/index.ts:112