@cashu/cashu-ts
    Preparing search index...

    Class ReceiveBuilder

    Builder for receiving a token.

    If you do not call a type method, the wallet’s policy default is used.

    const proofs = await wallet.ops
    .receive(token)
    .asDeterministic() // counter 0 auto reserves
    .requireDleq(true)
    .run();
    Index

    Constructors

    Methods

    • Use deterministic outputs for the received proofs.

      Parameters

      • counter: number = 0

        Starting counter. Zero means auto reserve using the wallet’s CounterSource.

      • Optionaldenoms: number[]

        Optional custom split. Can be partial if you only need SOME specific amounts.

      Returns ReceiveBuilder

      If denoms specified, proofsWeHave() will have no effect.

    • Use P2PK locked outputs for the received proofs.

      Parameters

      • options: P2PKOptions

        NUT 11 options like pubkey and locktime.

      • Optionaldenoms: number[]

        Optional custom split. Can be partial if you only need SOME specific amounts.

      Returns ReceiveBuilder

      If denoms specified, proofsWeHave() will have no effect.

    • Use random blinding for the received outputs.

      Parameters

      • Optionaldenoms: number[]

        Optional custom split. Can be partial if you only need SOME specific amounts.

      Returns ReceiveBuilder

      If denoms specified, proofsWeHave() will have no effect.