@heliuslabs/spr - v0.9.0-alpha
    Preparing search index...

    Function checkedTransactionSize

    • Refuse a transaction the network cannot accept, naming the proof shape that produced it when the caller chose one.

      A serialized transaction over TRANSACTION_SIZE_LIMIT is dropped before execution, and confirmation cannot tell a dropped transaction from a slow one, so a caller that sends one waits out the confirmation and is told it timed out. Measuring at compile time reports the size instead, while the caller can still send to fewer recipients.

      Parameters

      • transaction: Transaction
      • Optionalshape: Readonly<{ inputs: number; outputs: number }>

      Returns Transaction