seedelf_cli::transaction

Function seedelf_reference_utxo

Source
pub fn seedelf_reference_utxo(network_flag: bool) -> Input
Expand description

Creates a reference UTXO input for the Seedelf contract.

This function selects a pre-defined reference UTXO based on the network flag and creates an Input using the UTXO hash and a fixed index of 1.

§Arguments

  • network_flag - A boolean flag specifying the network:
    • true for Preprod.
    • false for Mainnet.

§Returns

  • Input - A transaction input constructed from the specified reference UTXO.