[#IsRBFOptIn]
= IsRBFOptIn
:mrdocs:

Determine whether an unconfirmed transaction is signaling opt&hyphen;in to RBF according to BIP 125 This involves checking sequence numbers of the transaction, as well as the sequence numbers of all in&hyphen;mempool ancestors&period;

== Synopsis

Declared in `&lt;policy&sol;rbf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e3130ebe0)&rsqb;&rsqb;
xref:RBFTransactionState.adoc[RBFTransactionState]
IsRBFOptIn(
    xref:CTransaction.adoc[CTransaction] const& tx,
    xref:CTxMemPool.adoc[CTxMemPool] const& pool);
----

== Return Value

The rbf state

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| The unconfirmed transaction
| *pool*
| The mempool, which may contain the tx
|===


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