seedelf_cli::address

Function collateral_address

Source
pub fn collateral_address(network_flag: bool) -> Address
Expand description

Generates a collateral address for the specified Cardano network.

This function creates a Shelley address for collateral purposes. The address is not staked, meaning it has a Null delegation part. The network_flag determines whether the address is for the Testnet or Mainnet.

§Arguments

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

§Returns

  • Address - The collateral address for the specified network.