Type Alias ReceiveOptions

ReceiveOptions: {
    counter?: number;
    keysetId?: string;
    outputAmounts?: OutputAmounts;
    outputData?: OutputDataLike[] | OutputDataFactory;
    p2pk?: { locktime?: number; pubkey: string; refundKeys?: string[] };
    privkey?: string;
    proofsWeHave?: Proof[];
    pubkey?: string;
    requireDleq?: boolean;
}

Type declaration

  • Optionalcounter?: number
  • OptionalkeysetId?: string
  • OptionaloutputAmounts?: OutputAmounts
  • OptionaloutputData?: OutputDataLike[] | OutputDataFactory
  • Optionalp2pk?: { locktime?: number; pubkey: string; refundKeys?: string[] }
  • Optionalprivkey?: string
  • OptionalproofsWeHave?: Proof[]
  • Optionalpubkey?: string
  • OptionalrequireDleq?: boolean

Optional configuration for token processing:

  • keysetId: Override the default keyset ID with a custom one fetched from the /keysets endpoint.
  • 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.