Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Transaction

Index

Constructors

Accessors

Methods

  • addInput(input: Input): void
  • Parameters

    Returns void

  • addMint(mint: Mint): void
  • Parameters

    Returns void

  • addOutput(output: Output): void
  • Parameters

    Returns void

  • buildTransaction(): { hash: string; payload: string }
  • Returns { hash: string; payload: string }

    • hash: string
    • payload: string
  • calculateFee(extraOutputs?: Output[]): BigNumber
  • Parameters

    • Optional extraOutputs: Output[]

    Returns BigNumber

  • calculateMinUtxoAmount(tokens: Token[], hasPlutusDataHash?: boolean): BigNumber
  • Parameters

    • tokens: Token[]
    • Optional hasPlutusDataHash: boolean

    Returns BigNumber

  • getAdditionalInputAda(): BigNumber
  • Returns BigNumber

  • getAdditionalOutputAda(): BigNumber
  • Returns BigNumber

  • getAuxiliaryDataHashHex(): undefined | string
  • Returns undefined | string

  • getCollateralAmount(): BigNumber
  • Returns BigNumber

  • getFee(): BigNumber
  • Returns BigNumber

  • getInputAmount(): { ada: BigNumber; tokens: Token[] }
  • Returns { ada: BigNumber; tokens: Token[] }

    • ada: BigNumber
    • tokens: Token[]
  • getOutputAmount(): { ada: BigNumber; tokens: Token[] }
  • Returns { ada: BigNumber; tokens: Token[] }

    • ada: BigNumber
    • tokens: Token[]
  • getRequiredNativeScriptWitnesses(): Map<string, undefined>
  • Returns Map<string, undefined>

  • getRequiredSigners(): Map<string, undefined | BipPath>
  • Returns Map<string, undefined | BipPath>

  • getRequiredWitnesses(): Map<string, undefined | BipPath>
  • Returns Map<string, undefined | BipPath>

  • getScriptIntegrityHash(): undefined | Buffer
  • Returns undefined | Buffer

  • getTTL(): undefined | number
  • Returns undefined | number

  • getTransactionHash(): Buffer
  • Returns Buffer

  • getValidityIntervalStart(): undefined | number
  • Returns undefined | number

  • isPlutusTransaction(): boolean
  • Returns boolean

  • 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

    Parameters

    Returns Transaction

  • setFee(fee: BigNumber): void
  • Parameters

    • fee: BigNumber

    Returns void

  • setTTL(ttl: number): void
  • Parameters

    • ttl: number

    Returns void

  • setValidityIntervalStart(validityIntervalStart: number): void
  • Parameters

    • validityIntervalStart: number

    Returns void