pub fn collateral_input(network_flag: bool) -> Input
Expand description
Creates a collateral input for a transaction based on the network.
This function selects a pre-defined collateral UTXO based on the network flag
and creates an Input
using the UTXO hash and an index of 0
.
§Arguments
network_flag
- A boolean flag specifying the network:true
for Preprod.false
for Mainnet.
§Returns
Input
- A transaction input constructed from the specified collateral UTXO.