@arkade-os/sdk Documentation - v0.5.0-rc.11
    Preparing search index...

    Function canSweepOnchain

    • Whether a virtual output's exit already happened: the output lives onchain and completeUnroll is the only remedy. The third and last capability, on the location axis rather than the spend one — together the three partition the live set, since this claims every unrolled coin and the other two refuse them.

      Parameters

      Returns boolean

      The ts-sdk analogue of NArk's OnchainSweepService filter, minus the expiry clause: the relevant maturity here is the exit tx's CSV timelock, which prepareUnrollTransaction checks against the chain tip, not the batch expiry.