<p>Pretty sure that is possible with <code>cardano-db-sync</code>.</p>
<p>Every new UTxO is created by a transaction, which is part of a block and the block will have a timestamp.</p>

CC BY-SA 4.0
2023-10-07T15:10:19.107Z
is that something queriable from the script context for any utxo input in the tx to the validator?
user3755529
CC BY-SA 4.0
2023-10-07T15:20:56.177Z
I was wondering if is something than can be extrapolated from script context with PlutusTx, so provable from the script/validator itself, but I don't think so
user3755529
CC BY-SA 4.0
2023-10-07T01:00:19.850Z
2023-10-07T01:00:19.850Z
Erik de Castro Lopo
<p>Can you assess the time a Utxo was created in on-chain code?</p>
<p>i.e. A transaction to a smart contract that can claim  only Utxos - in that contract address - sent in a specific time period?</p>

<plutus>
Asses Utxos Time In On-Chain Code
# Asses Utxos Time In On-Chain Code

(Asked by: username_0 on 2023-10-06)

Can you assess the time a Utxo was created in on-chain code?

i.e. A transaction to a smart contract that can claim only Utxos - in that contract address - sent in a specific time period?

**Tags:** plutus

---

## 1 answers

### Answer by username_1 on 2023-10-07. Score: 0

Pretty sure that is possible with `cardano-db-sync`.

Every new UTxO is created by a transaction, which is part of a block and the block will have a timestamp.

> **Comments:**
> **username_0**: is that something queriable from the script context for any utxo input in the tx to the validator?  
> **username_0**: I was wondering if is something than can be extrapolated from script context with PlutusTx, so provable from the script/validator itself, but I don't think so  

---

