SendOptions: { counter?: number; includeDleq?: boolean; includeFees?: boolean; keysetId?: string; offline?: boolean; outputAmounts?: OutputAmounts; outputData?: { keep?: OutputDataLike[] | OutputDataFactory; send?: OutputDataLike[] | OutputDataFactory; }; p2pk?: { locktime?: number; pubkey: string; refundKeys?: string[] }; privkey?: string; proofsWeHave?: Proof[]; pubkey?: string;} Type declaration
Optional
counter?: number
Optional
includeDleq?: boolean
Optional
includeFees?: boolean
Optional
keysetId?: string
Optional
offline?: boolean
Optional
outputData?: {
keep?: OutputDataLike[] | OutputDataFactory;
send?: OutputDataLike[] | OutputDataFactory;
}
Optional
p2pk?: { locktime?: number; pubkey: string; refundKeys?: string[] }
Optional
privkey?: string
Optional
proofsWeHave?: Proof[]
Optional
pubkey?: string
Param: options
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 theCashuWallet
class to be initialized with a seed phrase.proofsWeHave
(Arraypubkey
(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/keysets
endpoint.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.