Evolution SDK
Querying

Protocol Parameters

Query current Cardano protocol parameters

Protocol Parameters

Protocol parameters define the network's rules — fee calculations, size limits, deposits, and Plutus execution costs. The transaction builder fetches these automatically, but you can also query them directly.

Query Parameters

import {  } from "@evolution-sdk/evolution"

const  = ({
  : "preprod",
  : { : "blockfrost", : "https://cardano-preprod.blockfrost.io/api/v0", : ..! },
  : { : "seed", : ..!, : 0 }
})

const  = await .()

.("Min fee coefficient:", .)
.("Min fee constant:", .)
.("Max tx size:", .)
.("Key deposit:", .)
.("Pool deposit:", .)

Key Parameters

ParameterDescriptionTypical Value
minFeeAFee per byte coefficient44
minFeeBBase fee constant155381
maxTxSizeMaximum transaction size (bytes)16384
keyDepositStake key registration deposit2000000 (2 ADA)
poolDepositPool registration deposit500000000 (500 ADA)
coinsPerUtxoByteMinimum ADA per UTxO byte4310
collateralPercentageCollateral percentage for scripts150
priceMemPlutus memory cost coefficient0.0577
priceStepPlutus CPU cost coefficient0.0000721

Override in Build Options

You can provide custom protocol parameters when building transactions:

import { , ,  } from "@evolution-sdk/evolution"

const  = ({
  : "preprod",
  : { : "blockfrost", : "https://cardano-preprod.blockfrost.io/api/v0", : ..! },
  : { : "seed", : ..!, : 0 }
})

declare const : any

const  = await 
  .()
  .({
    : .("addr_test1vrm9x2dgvdau8vckj4duc89m638t8djmluqw5pdrFollw8qd9k63"),
    : .(2_000_000n)
  })
  .({ :  })

Next Steps