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

    Function resolveSendAmount

    • Resolve a rail's send amount from an explicit value or the BIP21 amount= param, validated as a positive integer number of satoshis. Rejecting here keeps the router from surfacing a { amount: 0 } quote that only fails later in wallet/swap code.

      Parameters

      • railId: string
      • raw: string
      • Optionalamount: number

      Returns number