Derives a script address (enterprise address) from a script.
This function calculates the script's hash, creates a script credential from it, and then constructs an enterprise address for the specified network.
If any step of the address creation process fails.
The script (Native or Plutus) from which to derive the address.
The network identifier (e.g., Mainnet or Testnet).
An Address object representing the script address.
Derives a script address (enterprise address) from a script.
This function calculates the script's hash, creates a script credential from it, and then constructs an enterprise address for the specified network.
Throws
If any step of the address creation process fails.