Locktime attribute of Bitcoin learning-transaction

Source: Internet
Author: User

Locktime, also known as nlocktime from the variable name used on the reference client, defines the earliest time that a TR Ansaction is valid and can being relayed on the network or added to the block chain. It is set to zero in the transactions to indicate immediate propagation and execution. If Locktime is nonzero and below of million, it is interpreted as a block height, meaning the transaction was not valid an D is not a relayed or included in the blockchain prior to the specified block height. If It is above-million, it is interpreted as a Unix Epoch timestamp (seconds since jan-1-1970) and the transaction are Not valid prior to the specified time. Transactions with Locktime specifying a future block or time must being held by the originating system and transmitted to the Bitcoin network only after they become valid. The use of locktime are equivalent to postdating a paper check.


Locktime, also known as Nlocktime, defines the earliest time, and this transaction can be sent to the Bitcoin network only after this earliest time. is usually set to 0, which means that transaction is sent to the Bitcoin network as soon as it is created. If the nlocktime time is between 1 and 500 million, then the transaction will only be added to chunks with a block height greater than or equal to Nlocktime. If the value of Nlocktime is more than 500 million, it is calculated from January 01, 1970, plus a point in time after nlocktime seconds, and if transaction is created earlier than that point in time, the transaction will not be sent to the Bitcoin network. The transaction with locktime indicates that the transactions will be verified and sent to the Bitcoin network in a future block or a future point in time. ...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.