<p>Datum and redeemer (all required data for script execution) are stored on-chain as well so the node can optionally verify the script execution outcome when replaying the chain.</p>
<p>Since chainindex follows a chain using connection to <code>cardano-node</code> it receives all the executed scripts, datums and redeemers after they get committed on-chain.</p>
<p>Which means that even different chain-index servers will see the same script data.</p>

CC BY-SA 4.0
2021-12-08T10:47:44.430Z
2021-12-08T10:47:44.430Z
sorki
<p>In utxo we store only the hash of the datum, so whenever you work with the Cardano cli to run a transaction - you should provide datum or its hash via tx-out-datum-embed-file, tx-in-datum-file, etc.</p>
<p>What about the PAB?</p>
<p>Did I understand correctly that original datum is stored in chainindex?
At what step is original Datum sent from PAB to the chainindex?</p>
<p>If the datum is stored in chaindex - does it mean that all PAB apps should be connected to the same chainindex in order to share datum with each other?
Are we going to have a global chainindex available for all PABs?
What if two PABs are connected to different chainindex servers, does it mean that the datum will not be shared between them?</p>

<utxo><pab><datum>
Where is the Datum stored in PAB?
# Where is the Datum stored in PAB?

(Asked by: username_0 on 2021-12-07)

In utxo we store only the hash of the datum, so whenever you work with the Cardano cli to run a transaction - you should provide datum or its hash via tx-out-datum-embed-file, tx-in-datum-file, etc.

What about the PAB?

Did I understand correctly that original datum is stored in chainindex?
At what step is original Datum sent from PAB to the chainindex?

If the datum is stored in chaindex - does it mean that all PAB apps should be connected to the same chainindex in order to share datum with each other?
Are we going to have a global chainindex available for all PABs?
What if two PABs are connected to different chainindex servers, does it mean that the datum will not be shared between them?

**Tags:** utxo, pab, datum

---

## 1 answers

### Answer by username_1 on 2021-12-08. Score: 1

Datum and redeemer (all required data for script execution) are stored on-chain as well so the node can optionally verify the script execution outcome when replaying the chain.

Since chainindex follows a chain using connection to `cardano-node` it receives all the executed scripts, datums and redeemers after they get committed on-chain.

Which means that even different chain-index servers will see the same script data.


---

