Function getDustThresholdForLength

  • Given an encoded output length, return the minimum output value in satoshis required to exceed the dust threshold. See getDustThreshold for details.

    Most applications should instead use getDustThreshold to ensure proper encoding and proper treatment of arbitrary data outputs (isArbitraryDataOutput).

    Parameters

    • outputLength: number

      the length of the serialized output

    • dustRelayFeeSatPerKb: bigint = ...

      the "dust relay fee", defaults to 1000n

    Returns bigint

Generated using TypeDoc