ProtocolParameters

class cometa.protocol_params.protocol_parameters.ProtocolParameters(ptr)[source]

Bases: object

Protocol parameters that govern the Cardano network.

Protocol parameters define various aspects of the network including transaction fees, block sizes, staking parameters, and governance thresholds.

__init__(ptr)[source]
Return type:

None

__enter__()[source]
Return type:

ProtocolParameters

__exit__(exc_type, exc_val, exc_tb)[source]
Return type:

None

__repr__()[source]

Return repr(self).

Return type:

str

classmethod new()[source]

Creates a new empty ProtocolParameters instance.

Returns:

A new ProtocolParameters instance.

Raises:

CardanoError – If creation fails.

Return type:

ProtocolParameters

property min_fee_a: int

Linear fee coefficient (a) for transaction fees.

The minimum fee is calculated as: min_fee = a * tx_size + b

property min_fee_b: int

Constant fee coefficient (b) for transaction fees.

The minimum fee is calculated as: min_fee = a * tx_size + b

property max_block_body_size: int

Maximum block body size in bytes.

property max_tx_size: int

Maximum transaction size in bytes.

property max_block_header_size: int

Maximum block header size in bytes.

property key_deposit: int

Staking key registration deposit in lovelaces.

property pool_deposit: int

Stake pool registration deposit in lovelaces.

property max_epoch: int

Maximum pool retirement epoch bounds.

property n_opt: int

Desired number of stake pools (k parameter).

property pool_pledge_influence: UnitInterval | None

Pool pledge influence factor (a0).

property expansion_rate: UnitInterval | None

Monetary expansion rate (rho).

property treasury_growth_rate: UnitInterval | None

Treasury growth rate (tau).

property d: UnitInterval | None

Decentralization parameter (deprecated in Babbage).

property extra_entropy: Buffer | None

Extra entropy for leader selection (deprecated).

property protocol_version: ProtocolVersion | None

Current protocol version.

property min_pool_cost: int

Minimum pool cost in lovelaces.

property ada_per_utxo_byte: int

Lovelaces per UTXO byte (coins per UTxO word).

property cost_models: Costmdls | None

Cost models for Plutus script execution.

property execution_costs: ExUnitPrices | None

Execution unit prices for Plutus scripts.

property max_tx_ex_units: ExUnits | None

Maximum execution units per transaction.

property max_block_ex_units: ExUnits | None

Maximum execution units per block.

property max_value_size: int

Maximum value size in bytes.

property collateral_percentage: int

Collateral percentage required for Plutus scripts.

property max_collateral_inputs: int

Maximum number of collateral inputs.

property pool_voting_thresholds: PoolVotingThresholds | None

Voting thresholds for stake pool operators.

property drep_voting_thresholds: DRepVotingThresholds | None

Voting thresholds for DReps.

property min_committee_size: int

Minimum constitutional committee size.

property committee_term_limit: int

Committee member term limit in epochs.

property governance_action_validity_period: int

Governance action validity period in epochs.

property governance_action_deposit: int

Governance action deposit in lovelaces.

property drep_deposit: int

DRep registration deposit in lovelaces.

property drep_inactivity_period: int

DRep inactivity period in epochs.

property ref_script_cost_per_byte: UnitInterval | None

Reference script cost per byte.