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

Estimate a smart timestamp for a transaction from block and receive times&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned int
ComputeTimeSmart(
    xref:wallet/CWalletTx.adoc[CWalletTx] const& wtx,
    bool rescanning&lowbar;old&lowbar;block) const;
----

== Return Value

The estimated transaction time&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *wtx*
| The wallet transaction to timestamp&period;
| *rescanning&lowbar;old&lowbar;block*
| Whether the transaction was found during a rescan of old blocks&period;
|===


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