user5844: Once I have written up the smart contract how to I get the script address value to be able to interact with the script whilst its on chain?

user6982: There's multiple ways to do it. For example using cardano-addresses or Pycardano library
Pycardano:
script_cbor_hex = '...'
script = cbor2.loads(bytes.fromhex(script_cbor_hex))
script_hash = plutus_script_hash(script)
script_address = Address(script_hash)


user6763: for those looking to use ```cardano-cli``
cardano-cli address build --$testnet --payment-script-file path/to/serialized-smartContract.plutus.json


5844: <p>Once I have written up the smart contract how to I get the script address value to be able to interact with the script whilst its on chain?</p>
 6982: <p>There's multiple ways to do it. For example using cardano-addresses or Pycardano library</p>
<p>Pycardano:</p>
<pre><code>script_cbor_hex = '...'
script = cbor2.loads(bytes.fromhex(script_cbor_hex))
script_hash = plutus_script_hash(script)
script_address = Address(script_hash)
</code></pre>
 6763: <p>for those looking to use ```cardano-cli``</p>
<pre><code>cardano-cli address build --$testnet --payment-script-file path/to/serialized-smartContract.plutus.json
</code></pre>
