Questions tagged [time]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
25 views

Whats the function to get the current time in Plutus?

Im using the time module in the ledger class to do some custom validation logic, but everything is done as intervals and I cant find the function that gets the current time. What is it?
user avatar
2 votes
1 answer
61 views

How precise is the time inside a plutus script?

It is a known fact that you can calculate time inside a plutus validator script by looking at the txInfoValidRange attribute. Now, since this value is a range and not an exact time, it makes me wonder ...
user avatar
  • 753
0 votes
2 answers
41 views

Diagnosing a POSIXTime discrepancy

My computer's date command is returning a timestamp wildly different from what testnet wants. Using this formula, > slotToEndPOSIXTime testnetConf 55047601 POSIXTime {getPOSIXTime = 1651015217999} ...
user avatar
  • 333
1 vote
1 answer
87 views

How to implement Vesting smartcontract with time period longer than 36 hours?

Context In third weeks plutus pioneer lecture lars said that Vesting period shouldn't be longer than 36 hours. He argued that this is because time is calculated in slots on-chain and that this ...
user avatar
0 votes
0 answers
25 views

How to PreSign a transaction

im trying to figure out how to sign a smart contract (SC) and have it put on-chain, where it waits until its validation logic returns True. Edit 1: To clarify what I mean by signing is the private key ...
user avatar
3 votes
1 answer
66 views

Can you specify an upper and lower bound for the validity period of a transaction?

I want a transaction to only be valid for a certain period of time relative to some specified start time. I thought that maybe I could use Constraints.mustValidateIn (interval firstInterval $ ...
user avatar
1 vote
2 answers
94 views

Is there a way for a validator to get the current time?

Is it possible for a validator to get the current time without it being passed in via the redeemer? My validator is heavily dependent on the time being correct so it would probably be a bad design ...
user avatar
18 votes
2 answers
555 views

Is there a maximum number of transactions a block can hold?

If the network is under heavy use and transactions are being recorded in these blocks faster than normal, is there a cap on the size of the block? Perhaps the rule is 20 second slot time, or a full ...
user avatar