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?

1 Answer 1


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.

  • is that something queriable from the script context for any utxo input in the tx to the validator? Oct 7, 2023 at 15:10
  • 1
    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 Oct 7, 2023 at 15:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.