Skip to content

cardano-web3-js / CML / min_fee

Function: min_fee()

min_fee(tx, linear_fee, ex_unit_prices, total_ref_script_size): bigint

Defined in: node_modules/cardano-wasm-libs/src/libs/cardano-multiplatform-lib/nodejs/cardano_multiplatform_lib.d.ts:75

  • Calculates the cost of all ref scripts
    • total_ref_script_size - Total size (original, not hashes) of all ref scripts. Duplicate scripts are counted as many times as they occur

Parameters

tx

Transaction

linear_fee

LinearFee

ex_unit_prices

ExUnitPrices

total_ref_script_size

bigint

Returns

bigint

Released under the MIT License