ReceiveOptions
@cashu/cashu-ts / ReceiveOptions
Type Alias: ReceiveOptions
ReceiveOptions =
object
Defined in: cashu-ts/src/model/types/index.ts:27
Param
Optional configuration for token processing:
keysetId: Override the default keyset ID with a custom one fetched from the/keysetsendpoint.outputAmounts: Specify output amounts for keeping or sending.proofsWeHave: Provide stored proofs for optimal output derivation.counter: Set a counter to deterministically derive secrets (requires CashuWallet initialized with a seed phrase).pubkey: Lock eCash to a public key (non-deterministic, even with a counter set).privkey: Create a signature for token secrets.requireDleq: Verify DLEQ proofs for all provided proofs; reject the token if any proof fails verification.
Properties
counter?
optionalcounter:number
Defined in: cashu-ts/src/model/types/index.ts:31
keysetId?
optionalkeysetId:string
Defined in: cashu-ts/src/model/types/index.ts:28
outputAmounts?
optionaloutputAmounts:OutputAmounts
Defined in: cashu-ts/src/model/types/index.ts:29
outputData?
optionaloutputData:OutputDataLike[] |OutputDataFactory
Defined in: cashu-ts/src/model/types/index.ts:35
p2pk?
optionalp2pk:object
Defined in: cashu-ts/src/model/types/index.ts:36
locktime?
optionallocktime:number
pubkey
pubkey:
string
refundKeys?
optionalrefundKeys:string[]
privkey?
optionalprivkey:string
Defined in: cashu-ts/src/model/types/index.ts:33
proofsWeHave?
optionalproofsWeHave:Proof[]
Defined in: cashu-ts/src/model/types/index.ts:30
pubkey?
optionalpubkey:string
Defined in: cashu-ts/src/model/types/index.ts:32
requireDleq?
optionalrequireDleq:boolean
Defined in: cashu-ts/src/model/types/index.ts:34