@stricahq/typhonjs - v4.0.0
    Preparing search index...

    Class Transaction

    Index
    • The method will add a certificate to the transaction to be included in cbor This method will automatically scan and include each unique required witnesses in the map to help sign the transaction

      Parameters

      • certificate: Certificate

        a certificate to include in the transaction

      Returns void

    • Parameters

      Returns void

    • Parameters

      Returns void

    • Parameters

      Returns void

    • Adds a reference input. A Plutus script it holds, given as plutusScript or on the address credential, sets the script's language in the script integrity hash once the transaction runs that script, i.e. spends from, mints with, withdraws with, certifies with or votes with its hash.

      Parameters

      Returns void

    • Returns { hash: string; payload: string }

    • Parameters

      • OptionalextraOutputs: Output[]

      Returns bigint

    • Parameters

      Returns bigint

    • Parameters

      • OptionalextraOutputs: Output[]

      Returns number

    • This method scans the certificates added in the transaction to calculate additional ADA available in inputs as part of the deposit refund. Essentially ADA to be considered as additional input due to deposit refunds.

      Returns bigint

      additional ADA available as input

    • This method scans the certificates and proposal procedures added in the transaction to calculate additional ADA required for transaction validity.

      1. deposits of stake key, stake key with delegation and DRep registrations
      2. proposal procedure deposit ADA
      3. donation amount

      Returns bigint

      additional ADA required for a valid transaction

    • Returns string | undefined

    • Returns bigint

    • Returns Output | undefined

    • Returns bigint | undefined

    • Returns bigint

    • Returns { ada: bigint; tokens: Token[] }

    • Returns { ada: bigint; tokens: Token[] }

    • Every redeemer with the pointer the ledger identifies it by: what it's for (tag) and the index of the item it redeems. The redeemer is the object you passed in, so setting its exUnits, say from evaluating the transaction, updates the fee and what gets built.

      Returns TaggedRedeemer[]

    • Returns Map<string, undefined>

    • Returns Map<string, BipPath | undefined>

    • Returns Map<string, BipPath | undefined>

    • Returns Uint8Array<ArrayBufferLike> | undefined

    • Returns bigint | undefined

    • Returns Uint8Array

    • Returns bigint | undefined

    • Returns number | undefined

    • Returns number | undefined

    • Parameters

      • input: { index: number; txId: string }

      Returns boolean

    • Returns boolean

    • Function for a simple send ADA transaction Provide necessary outputs, and available inputs, returns a final tx

      Parameters

      Returns Transaction

    • Function to prepare transaction automatically There are other helper methods for preparing transactions that use this method This method should be used when you know what you are doing sets required inputs, fees, change etc resulting transaction is the final tx that can be built for signing

      A transaction that runs Plutus scripts also gets as many of collateralInputs as it takes to cover the fee. A collateral return sends what a failing script wouldn't take back to the change address, and the total collateral is set to what it would take. Both replace any collateral return or total collateral set before.

      Call it again after changing the transaction, such as setting execution units from an evaluation, and it balances the transaction again. It replaces the change outputs it added before and keeps the inputs and collateral it spent, adding more if the fee needs them. When it throws, the transaction is left as it was.

      When the transaction needs optional protocol parameters that are missing, such as the Plutus ones, it throws an error naming all of them.

      Parameters

      Returns Transaction

    • Parameters

      Returns void

    • Parameters

      • amount: bigint

      Returns void

    • Parameters

      • fee: bigint

      Returns void

    • Parameters

      • amount: bigint

      Returns void

    • Parameters

      • amount: bigint

      Returns void

    • Parameters

      • ttl: number

      Returns void

    • Parameters

      • validityIntervalStart: number

      Returns void