seedelf_cli::transaction

Function wallet_reference_utxo

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

Creates a reference UTXO input for the wallet contract.

This function selects a pre-defined wallet 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 wallet reference UTXO.