<p>The common understanding is that reference scripts &amp; reference inputs allow for making some transactions smaller as they would not need to include the full script when spending an output governed by a Plutus script.</p>

CC BY-SA 4.0
2022-07-01T11:04:16.353Z
Yes I know, but for that AFAIK you need PlutusV2 code, which typed scripts I can't find!
KugisMugis
CC BY-SA 4.0
2022-07-04T11:11:00.940Z
I don't think that reference scripts dictate use of PlutusV2, but the library / framework you use to create transactions needs to support these features.

For example: https://github.com/input-output-hk/cardano-node/blob/9f1d7dc163ee66410d912e48509d6a2300cfa68a/cardano-api/src/Cardano/Api/Script.hs#L1410-L1417 in the cardano-api library.
Sebastian Nagel
CC BY-SA 4.0
2022-06-29T13:28:30.197Z
2022-06-29T13:28:30.197Z
Sebastian Nagel
<p>With the recent Vasil fork script references allow to reduce transaction size. Even though Vasil has been already launched on the testnet I could not find information on how to reduce the size of typed Plutus scripts. The only lead I have found is <a href="https://github.com/james-iohk/plutus-scripts" rel="nofollow noreferrer">this</a> repository, but it only has examples on how to use PlutusV2 with untyped scripts.</p>
<p>How to reduce tx size using typed Plutus script with Vasil fork PlutusV2?</p>

CC BY-SA 4.0
2022-07-12T13:19:52.770Z
https://github.com/perturbing/vasil-tests/blob/main/referencing-scripts-cip-33.md. Here is an example of a typed plutus script V2.
Fermat
<plutus><plutus-pioneer-program><transaction>
How to reduce tx size using typed Plutus script with Vasil fork PlutusV2?
# How to reduce tx size using typed Plutus script with Vasil fork PlutusV2?

(Asked by: username_0 on 2022-06-29)

With the recent Vasil fork script references allow to reduce transaction size. Even though Vasil has been already launched on the testnet I could not find information on how to reduce the size of typed Plutus scripts. The only lead I have found is [this](https://github.com/james-iohk/plutus-scripts) repository, but it only has examples on how to use PlutusV2 with untyped scripts.

How to reduce tx size using typed Plutus script with Vasil fork PlutusV2?

**Tags:** plutus, plutus-pioneer-program, transaction
> **Comments:**
> **username_1**: https://github.com/perturbing/vasil-tests/blob/main/referencing-scripts-cip-33.md. Here is an example of a typed plutus script V2.  

---

## 1 answers

### Answer by username_2 on 2022-06-29. Score: 1

The common understanding is that reference scripts & reference inputs allow for making some transactions smaller as they would not need to include the full script when spending an output governed by a Plutus script.

> **Comments:**
> **username_0**: Yes I know, but for that AFAIK you need PlutusV2 code, which typed scripts I can't find!  
> **username_2**: I don't think that reference scripts dictate use of PlutusV2, but the library / framework you use to create transactions needs to support these features.  For example: https://github.com/input-output-hk/cardano-node/blob/9f1d7dc163ee66410d912e48509d6a2300cfa68a/cardano-api/src/Cardano/Api/Script.hs#L1410-L1417 in the cardano-api library.  

---

