[#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. == Synopsis Declared in `<kernel/bitcoinkernel_wrapper.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool Verify( int64_t amount, xref:btck/Transaction.adoc[Transaction] const& tx_to, xref:btck/PrecomputedTransactionData.adoc[PrecomputedTransactionData] const* precomputed_txdata, unsigned int input_index, xref:btck/ScriptVerificationFlags.adoc[ScriptVerificationFlags] flags, xref:btck/ScriptVerifyStatus.adoc[ScriptVerifyStatus]& status) const; ---- == Return Value True when the input satisfies the script. == Parameters [cols="1,4"] |=== | Name| Description | *amount* | The value of the output being spent, in satoshis. | *tx_to* | The spending transaction. | *precomputed_txdata* | Optional precomputed signature‐hash data, or null. | *input_index* | The index of the input under verification. | *flags* | The script verification flags to apply. | *status* | Receives the verification status. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#