Skip to main content

Module sequence

Module sequence 

Source
Expand description

Bitcoin transaction input sequence number.

The sequence field is used for:

  • Indicating whether absolute lock-time (specified in lock_time field of Transaction) is enabled.
  • Indicating and encoding BIP-0068 relative lock-times.
  • Indicating whether a transaction opts-in to BIP-0125 replace-by-fee.

Note that transactions spending an output with OP_CHECKLOCKTIMEVERIFY MUST NOT use Sequence::MAX for the corresponding input. BIP-0065

Re-exports§

pub use sequence::SequenceDecoderError;

Modules§

error
Error types for input sequence numbers.

Structs§

Sequence
Bitcoin transaction input sequence number.
SequenceDecoder
The decoder for the Sequence type.
SequenceEncoder
The encoder for the Sequence type.