@arkade-os/sdk Documentation - v0.4.54
    Preparing search index...

    Function tryResolveSendAmount

    • Non-throwing counterpart of resolveSendAmount, for availability checks that must not reject the router: returns the positive-integer sats from the explicit amount or the BIP21 amount= param, or undefined when none is present or the value is not a positive integer. The missing-vs-invalid distinction is left to resolveSendAmount at quote time.

      Parameters

      • raw: string
      • Optionalamount: number

      Returns number | undefined