@arkade-os/sdk Documentation - v0.4.54
    Preparing search index...

    Class ArkadeTransactionBuilder

    Fluent builder for a single spend. Obtained from contract.functions.<name>(...); chain .from()/.to() then .send() (broadcast) or .build() (assemble only).

    Index

    Constructors

    Methods

    • Destination for any surplus (inputs − outputs). Required when the spend is not exact.

      Parameters

      • script: Uint8Array

      Returns this

    • Add extra inputs the caller funds (e.g. a taker's own coins in a swap). These become inputs 1..n and are signed with the client identity.

      Parameters

      Returns this

    • Add an output — (script, amount) or a list of outputs.

      Parameters

      • script: Uint8Array
      • amount: bigint

      Returns this

    • Add an output — (script, amount) or a list of outputs.

      Parameters

      • outputs: PSBTKeyMapKeys<{}>[]

      Returns this