[#wallet-CWallet-GetTxBlocksToMaturity]
= xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::GetTxBlocksToMaturity
:relfileprefix: ../../
:mrdocs:

Return the number of blocks until a coinbase transaction matures&period;

== Synopsis

Declared in `&lt;wallet&sol;wallet&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1e597db8), requires&lowbar;capability(0x7f2e11aa8b78), requires&lowbar;capability(0x7f2e169fe968), requires&lowbar;capability(0x7f2e15f2de08), requires&lowbar;capability(0x7f2e12c6ca98)&rsqb;&rsqb;
int
GetTxBlocksToMaturity(xref:wallet/CWalletTx.adoc[CWalletTx] const& wtx) const;
----

== Return Value

number of blocks to maturity for this transaction&colon; 0 &colon; is not a coinbase transaction, or is a mature coinbase transaction &gt;0 &colon; is a coinbase transaction which matures in this many blocks

== Parameters

[cols="1,4"]
|===
| Name| Description
| *wtx*
| the wallet transaction to check
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
