<p>The Inline Datum was introduced with the Vasil Hard Fork (<a href="https://cips.cardano.org/cips/cip32/" rel="nofollow noreferrer">https://cips.cardano.org/cips/cip32/</a>). Before this, only using a Datum Hash was possible. Using a Datum Hash is more difficult for a decentralized application, because the Datum has to be shared off-chain between all parties who are doing transactions.With Inline Datums, it becomes a lot easier, because the Datum is visible on-chain.</p>

CC BY-SA 4.0
2023-07-16T08:46:39.080Z
2023-07-16T08:46:39.080Z
George - APEX Stake Pool
<p>There is another point here as well, in addition to George's. The addition of &quot;reference inputs&quot; (<a href="https://cips.cardano.org/cips/cip31/" rel="nofollow noreferrer">https://cips.cardano.org/cips/cip31/</a>) also means that it is possible to use datum without spending the corresponding UTxO, as was necessary before.  This also expands the use-cases and makes dealing with (for example) concurrency and shared state easier.</p>

CC BY-SA 4.0
2023-07-20T11:38:51.230Z
This is also how the Oracles in Cardano are working, they publish their information in a Datum, which can be used (as a reference input) multiple times by different DApps.
George - APEX Stake Pool
CC BY-SA 4.0
2023-07-20T09:58:54.800Z
2023-07-20T09:58:54.800Z
ZachSweet
<p>I have a good understanding of the role of Datums in Cardano's Extended UTXO model, including their use in representing the state of a smart contract. However, I'm seeking further clarification on the different types of Datums that can be used, such as inline and hashed Datums. Could someone elaborate on the various types, their specific uses, and the considerations for choosing between them in the development of smart contracts?</p>

<plutus><smart-contract><datum>
Different types of Datums
# Different types of Datums

(Asked by: username_0 on 2023-07-16)

I have a good understanding of the role of Datums in Cardano's Extended UTXO model, including their use in representing the state of a smart contract. However, I'm seeking further clarification on the different types of Datums that can be used, such as inline and hashed Datums. Could someone elaborate on the various types, their specific uses, and the considerations for choosing between them in the development of smart contracts?

**Tags:** plutus, smart-contract, datum

---

## 2 answers

### Answer by username_1 on 2023-07-16. Score: 1 | Accepted answer

The Inline Datum was introduced with the Vasil Hard Fork (<https://cips.cardano.org/cips/cip32/>). Before this, only using a Datum Hash was possible. Using a Datum Hash is more difficult for a decentralized application, because the Datum has to be shared off-chain between all parties who are doing transactions.With Inline Datums, it becomes a lot easier, because the Datum is visible on-chain.


---

### Answer by username_2 on 2023-07-20. Score: 1

There is another point here as well, in addition to George's. The addition of "reference inputs" (<https://cips.cardano.org/cips/cip31/>) also means that it is possible to use datum without spending the corresponding UTxO, as was necessary before. This also expands the use-cases and makes dealing with (for example) concurrency and shared state easier.

> **Comments:**
> **username_1**: This is also how the Oracles in Cardano are working, they publish their information in a Datum, which can be used (as a reference input) multiple times by different DApps.  

---

