Instruction:How to calculate the validity period of a check

From Decimal Wiki
Revision as of 13:32, 14 April 2024 by CryptoUser (talk | contribs)
Jump to navigation Jump to search
This is a page with the instruction guide to the Decimal Console.

During the creation of a check, there is a field called Due block:


The Due block field is used to limit the validity of the check. If you want an indefinite check, leave this field blank. However, if you want the check to expire after a certain amount of time, you need to calculate the block at which it will expire. To do this, look at the height of the current signed block in the explorer. You can access the explorer at https://explorer.decimalchain.com:


Find the last signed block (14,658,101 in our example) and record its number. Now calculate how many days you want to add to this value. Keep in mind that Decimal blockchain signs around 14,400 blocks per day, or one block every six seconds. For example, if you want to limit the check to one month, multiply 30 days by 14,400:

Add this number to the last signed block:

Insert this value into the Due block field, and your check will be valid for 30 days, expiring at block 15,090,101.


 This article is available in other languages:    Русский