@cashlab/cauldron
    Preparing search index...

    Function extractInfoFromPoolV0UnlockingBytecode

    • Reads the type of the transaction and the pool's parameters from a p2sh unlocking bytecode if the locking bytecode is a PoolV0.

      Parameters

      • unlocking_bytecode: Uint8Array

        the unlocking bytecode of a transaction input.

      Returns null | { parameters: PoolV0Parameters; type: "withdraw" | "trade" }

      the result of the extracted data or null if the bytecode is not PoolV0