SendOptions
@cashu/cashu-ts / SendOptions
Type Alias: SendOptions
SendOptions =
object
Defined in: cashu-ts/src/model/types/index.ts:51
Param
Optional parameters for configuring the send operation:
outputAmounts(OutputAmounts): Specify the amounts to keep and send in the output.counter(number): Set a counter to derive secrets deterministically. Requires theCashuWalletclass to be initialized with a seed phrase.proofsWeHave(Array<Proof>): Provide all currently stored proofs for the mint. Used to derive optimal output amounts.pubkey(string): Lock eCash to a specified public key. Note that this will not be deterministic, even if a counter is set.privkey(string): Create a signature for the output secrets if provided.keysetId(string): Override the keyset ID derived from the current mint keys with a custom one. The keyset ID should be fetched from the/keysetsendpoint.offline(boolean): Send proofs offline, if enabled.includeFees(boolean): Include fees in the response, if enabled.includeDleq(boolean): Include DLEQ proofs in the proofs to be sent, if enabled.
Properties
counter?
optionalcounter:number
Defined in: cashu-ts/src/model/types/index.ts:54
includeDleq?
optionalincludeDleq:boolean
Defined in: cashu-ts/src/model/types/index.ts:60
includeFees?
optionalincludeFees:boolean
Defined in: cashu-ts/src/model/types/index.ts:59
keysetId?
optionalkeysetId:string
Defined in: cashu-ts/src/model/types/index.ts:57
offline?
optionaloffline:boolean
Defined in: cashu-ts/src/model/types/index.ts:58
outputAmounts?
optionaloutputAmounts:OutputAmounts
Defined in: cashu-ts/src/model/types/index.ts:52
outputData?
optionaloutputData:object
Defined in: cashu-ts/src/model/types/index.ts:61
keep?
optionalkeep:OutputDataLike[] |OutputDataFactory
send?
optionalsend:OutputDataLike[] |OutputDataFactory
p2pk?
optionalp2pk:object
Defined in: cashu-ts/src/model/types/index.ts:65
locktime?
optionallocktime:number
pubkey
pubkey:
string
refundKeys?
optionalrefundKeys:string[]
privkey?
optionalprivkey:string
Defined in: cashu-ts/src/model/types/index.ts:56
proofsWeHave?
optionalproofsWeHave:Proof[]
Defined in: cashu-ts/src/model/types/index.ts:53
pubkey?
optionalpubkey:string
Defined in: cashu-ts/src/model/types/index.ts:55