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

    Type Alias ProtocolParams

    The protocol parameters a transaction is built with. Payments and staking need only the required ones. The others are needed only by the transactions that use them, and building one without them throws an error that names each one missing:

    • collateralPercent, priceMem, priceSteps and the languageView of each Plutus language it runs, for Plutus scripts
    • minFeeRefScriptCostPerByte, for spending or referencing a UTxO that holds a reference script

    When maxTxSize is given, prepareTransaction throws for a transaction bigger than it.

    type ProtocolParams = {
        collateralPercent?: number;
        languageView?: LanguageView;
        maxTxSize?: number;
        maxValueSize: number;
        minFeeA: bigint;
        minFeeB: bigint;
        minFeeRefScriptCostPerByte?: Rational;
        priceMem?: Rational;
        priceSteps?: Rational;
        stakeKeyDeposit: bigint;
        utxoCostPerByte: bigint;
    }
    Index
    collateralPercent?: number
    languageView?: LanguageView
    maxTxSize?: number
    maxValueSize: number
    minFeeA: bigint
    minFeeB: bigint
    minFeeRefScriptCostPerByte?: Rational
    priceMem?: Rational
    priceSteps?: Rational
    stakeKeyDeposit: bigint
    utxoCostPerByte: bigint