user6286: How is Plutus on-chain code able to retrieve and decode datums from UTXOs of ScriptContext?
These datums are hardly found in cardano-db-sync or explorers anywhere?

user4302: Currently, only datum hashes are able to be a part of the UTXO, so you are only able to verify a datum value on chain. Retrieving the datum itself is therefore on off-chain process.
However CIP-32 is coming very soon (likely end of February/March) and will enable attaching the datum itself to a UTXO, rather than only the datum hash.

6286: <p>How is Plutus on-chain code able to retrieve and decode datums from UTXOs of <code>ScriptContext</code>?</p>
<p>These datums are hardly found in cardano-db-sync or explorers anywhere?</p>
 4302: <p>Currently, only datum <em>hashes</em> are able to be a part of the UTXO, so you are only able to <em>verify</em> a datum value on chain. Retrieving the datum itself is therefore on off-chain process.</p>
<p>However <a href="https://github.com/cardano-foundation/CIPs/pull/160" rel="nofollow noreferrer">CIP-32</a> is coming very soon (likely end of February/March) and will enable attaching the datum itself to a UTXO, rather than only the datum hash.</p>
