<p>Found the answer a while after posting this question. So, I am adding it here for reference. Using <code>toCardanoAddress</code> function from <code>module Ledger.Tx.CardanoAPI</code> conversion to <code>ShelleyAddress</code> can be done.</p>
<p>Example:</p>
<pre><code>toCardanoAddress (Testnet $ NetworkMagic 1097911063) scriptAddress
</code></pre>
<p>You can unwrap the <code>Either</code> returned above if needed.</p>

CC BY-SA 4.0
2022-04-20T10:33:23.837Z
2022-04-20T10:33:23.837Z
lambda
<p>I have this script address of the type <code>Plutus.V1.Ledger.Address.Address</code>.</p>
<pre><code>Address {addressCredential = ScriptCredential 31559888de4dd413f20557ff39f616eb3e8a52d36528f88e6aef2f8d,
 addressStakingCredential = Nothing}
</code></pre>
<p>Is there a way to convert this to a <code>ShelleyAddress</code> of the format <code>addr..</code> using <code>Plutus</code>?</p>

<plutus><cardano-address><shelley>
Convert a script address to Shelley address using Plutus
# Convert a script address to Shelley address using Plutus

(Asked by: username_0 on 2022-04-20)

I have this script address of the type Plutus.V1.Ledger.Address.Address.
Address {addressCredential = ScriptCredential 31559888de4dd413f20557ff39f616eb3e8a52d36528f88e6aef2f8d,
 addressStakingCredential = Nothing}

Is there a way to convert this to a ShelleyAddress of the format addr.. using Plutus?

**Tags:** plutus, cardano-address, shelley

---

## 1 answers

### Answer by username_0 on 2022-04-20. Score: 2

Found the answer a while after posting this question. So, I am adding it here for reference. Using toCardanoAddress function from module Ledger.Tx.CardanoAPI conversion to ShelleyAddress can be done.
Example:
toCardanoAddress (Testnet $ NetworkMagic 1097911063) scriptAddress

You can unwrap the Either returned above if needed.


---

