Skip to main content

Module coinbase

Module coinbase 

Source
Expand description

Types, constants, and functions related to coinbase transactions.

Structs§

Coinbase
transparent::bundle::Authorization marker for the transparent bundle of a coinbase transaction, which carries no authorizing data.

Enums§

Error
Errors related to coinbase transactions.

Constants§

MAX_COINBASE_HEIGHT_LEN
The maximum length of the encoded height in the coinbase transaction script.
MAX_COINBASE_SCRIPT_LEN
The maximum length of the coinbase transaction script.
MIN_COINBASE_SCRIPT_LEN
The minimum length of the coinbase transaction script.

Functions§

coinbase_input
Creates the input of a coinbase transaction for the block at height.
is_coinbase
Returns true if tx is a coinbase transaction.