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

    Class ArkadeProgramScript

    A VtxoScript compiled from an Arkade Program, its constructor args and the signer keys.

    This is the single compilation path shared by the high-level ArkadeContract client and the "arkade" contract handler: both produce byte-identical taproot trees for the same (program, args, keys), so a contract registered through the src/contracts pipeline re-derives the exact script it was created with.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    args: Record<string, ArkadeParamValue>

    Spending paths in declaration order.

    leaves: TapLeafScript[]
    pkScript: Bytes
    program: Program
    scripts: Bytes[]

    Raw tapscript bytes for each leaf

    tweakedPublicKey: Bytes

    Methods

    • Build the Arkade address corresponding to this virtual output script.

      Parameters

      • prefix: string = DEFAULT_NETWORK.hrp

        Bech32 human-readable prefix

      • serverPubKey: Bytes

        32-byte Arkade server public key

      Returns ArkAddress

      Arkade address for this script

      ArkAddress

    • Build the Taproot onchain address corresponding to this virtual output script.

      Parameters

      • network: BTC_NETWORK = DEFAULT_NETWORK

        Bitcoin network descriptor

      Returns string

      Taproot onchain address

      address