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

    Class Script

    DelegateVtxo.Script extends DefaultVtxo.Script and adds a delegate path.

    const vtxoScript = new DelegateVtxo.Script({
    pubKey: new Uint8Array(32),
    serverPubKey: new Uint8Array(32),
    delegatePubKey: new Uint8Array(32),
    csvTimelock: {
    value: 605184n,
    type: "seconds"
    }
    });

    console.log("script pub key:", vtxoScript.pkScript)

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    defaultVtxo: DefaultVtxo.Script
    delegateScript: string
    leaves: TapLeafScript[]
    pkScript: Bytes
    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