[#btck-ScriptPubkeyApi-02-Verify]
= xref:btck.adoc[btck]::xref:btck/ScriptPubkeyApi-02.adoc[ScriptPubkeyApi]::Verify
:relfileprefix: ../../
:mrdocs:

Verifies a spending input against this script pubkey&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&lowbar;wrapper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
Verify(
    int64&lowbar;t amount,
    xref:btck/Transaction.adoc[Transaction] const& tx&lowbar;to,
    xref:btck/PrecomputedTransactionData.adoc[PrecomputedTransactionData] const* precomputed&lowbar;txdata,
    unsigned int input&lowbar;index,
    xref:btck/ScriptVerificationFlags.adoc[ScriptVerificationFlags] flags,
    xref:btck/ScriptVerifyStatus.adoc[ScriptVerifyStatus]& status) const;
----

== Return Value

True when the input satisfies the script&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *amount*
| The value of the output being spent, in satoshis&period;
| *tx&lowbar;to*
| The spending transaction&period;
| *precomputed&lowbar;txdata*
| Optional precomputed signature&hyphen;hash data, or null&period;
| *input&lowbar;index*
| The index of the input under verification&period;
| *flags*
| The script verification flags to apply&period;
| *status*
| Receives the verification status&period;
|===


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