Instruction:How to calculate the validity period of a check: Difference between revisions
[checked revision] | [checked revision] |
(Created page with "{{#seo: |title= How to calculate the validity period of a check |titlemode=append |keywords= How to calculate check validity time, How to calculate the validity period of a check, how long check is valid Decimal, valid before block, Decimal, checks |description= Decimal instruction. How to calculate check validity time in DecimalChain }} <div class="mikio-article-content"> <div class="mikio-tags"> </div> <span id="How to calculate check validity period"></span> = How to...") |
CryptoUser (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{#seo: | {{#seo: | ||
|title= How to calculate the validity period of a check | |title= How to calculate the validity period of a check — Instruction on Decimal Wiki | ||
|titlemode=append | |titlemode=append | ||
|keywords= How to calculate check validity time, How to calculate the validity period of a check, how long check is valid Decimal, valid before block, Decimal, checks | |keywords= How to calculate check validity time, How to calculate the validity period of a check, how long check is valid Decimal, valid before block, Decimal, checks | ||
|description= Decimal instruction. How to calculate check validity time in DecimalChain | |description= Decimal instruction. How to calculate check validity time in DecimalChain | ||
}} | }} | ||
{{manual-console}} | |||
< | During the [[Instruction:How to issue a check|creation of a check]], there is a field called '''Due block''': | ||
[[File:How_to_calculate_the_validity_period_of_a_check_1.png|700px|thumb|left]]<br clear="all"> | |||
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 <code>https://explorer.decimalchain.com</code>: | |||
= | [[File:How_to_calculate_the_validity_period_of_a_check_2.png|700px|thumb|left]]<br clear="all"> | ||
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: | |||
[[ | |||
<math>14,400 \times 30 = 432,000</math> | |||
Add this number to the last signed block: | |||
<math>14,658,101 + 432,000 = 15,090,101</math> | |||
Insert this value into the '''Due block''' field, and your check will be valid for 30 days, expiring at block 15,090,101. | |||
[[File:How_to_calculate_the_validity_period_of_a_check_3.png|700px|thumb|left]]<br clear="all"> | |||
[[Category:Instructions:Checks]] | |||
{{interwiki|ru=Инструкция:Как рассчитать время действия чека}} | |||
[[ | |||
Revision as of 13:32, 14 April 2024
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.