wallet::CWallet::GetTxBlocksToMaturity

Return the number of blocks until a coinbase transaction matures.

Synopsis

Declared in <wallet/wallet.h>

[[requires_capability(0x7ff3720ef218), requires_capability(0x7ff365f1f218), requires_capability(0x7ff35de5dbc8), requires_capability(0x7ff35efe26a8), requires_capability(0x7ff366fcec88)]]
int
GetTxBlocksToMaturity(CWalletTx const& wtx) const;

Return Value

number of blocks to maturity for this transaction: 0 : is not a coinbase transaction, or is a mature coinbase transaction >0 : is a coinbase transaction which matures in this many blocks

Parameters

NameDescription
wtxthe wallet transaction to check