<p>The <code>getrawmempool</code> RPC command, in verbose mode, produces an output that contains all known mempool transactions for your nodes. This output contains a <code>bip125-replaceable</code> boolean field which you can use to determine if a tx is explicitly or implicitly replaceable by fee.</p>

CC BY-SA 4.0
2020-03-06T07:33:54.300Z
`getrawmempool` returns the tx ids only, not contains any tx info, I'm afraid. Reference: https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list
JNN
CC BY-SA 4.0
2020-03-06T07:37:22.353Z
BTW, looks like `gettransaction` provides `bip125-replaceable` info, however it is no longer supported from `0.10.0`. Unfortunately mine is newer, so it is useless too. https://chainquery.com/bitcoin-cli/gettransaction
JNN
CC BY-SA 4.0
2020-03-06T08:22:12.713Z
@GiangNguyen If verbose is false, it returns only txids. If verbose is true, it returns a detailed JSON object for each transaction.
Raghav Sood
CC BY-SA 4.0
2020-03-06T09:06:51.803Z
awesome! I didn't notice that. Thanks!!
JNN
CC BY-SA 4.0
2020-03-05T18:16:52.213Z
2020-03-06T05:40:01.507Z
2020-03-06T05:40:01.507Z
Raghav Sood
<p>Based on Raghav Sood's answer, I found the more specific answer to the OP would be using <code>getmempoolentry</code>, in order to get an individual transaction info. Otherwise you'll be flooded with tons of transactions. Documented <a href="https://chainquery.com/bitcoin-cli/getmempoolentry" rel="nofollow noreferrer">here</a></p>

<p>You can also use <code>gettransaction</code>, it returns <code>bip125-replaceable</code> flag as well, however just for Bitcore prior to 0.10.0 according to <a href="https://chainquery.com/bitcoin-cli/gettransaction" rel="nofollow noreferrer">this</a></p>

CC BY-SA 4.0
2020-03-06T09:22:50.403Z
Ah, good point, I didn't actually realize an option for a single tx was added in 0.13!
Raghav Sood
CC BY-SA 4.0
2020-03-06T09:10:39.837Z
2020-03-06T09:10:39.837Z
JNN
<p>A transaction can be RBF if itself is a RBF, or it spends outputs from a RBF transaction.</p>
<p>Is there a way to use bitcoin RPC node to check if a transaction is spending outputs from a RBF transaction?</p>

<json-rpc><replace-by-fee>
How can I check whether a transaction spends the output of an RBF transaction?
Phương Nguyễn
# How can I check whether a transaction spends the output of an RBF transaction?

(Asked by: username_0 on 2020-03-05)

A transaction can be RBF if itself is a RBF, or it spends outputs from a RBF transaction.

Is there a way to use bitcoin RPC node to check if a transaction is spending outputs from a RBF transaction?

**Tags:** json-rpc, replace-by-fee


---

## 2 answers

### Answer by username_1 on 2020-03-05. Score: 3

The `getrawmempool` RPC command, in verbose mode, produces an output that contains all known mempool transactions for your nodes. This output contains a `bip125-replaceable` boolean field which you can use to determine if a tx is explicitly or implicitly replaceable by fee.

> **Comments:**
> **username_2**: `getrawmempool` returns the tx ids only, not contains any tx info, I'm afraid. Reference: https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list  
> **username_2**: BTW, looks like `gettransaction` provides `bip125-replaceable` info, however it is no longer supported from `0.10.0`. Unfortunately mine is newer, so it is useless too. https://chainquery.com/bitcoin-cli/gettransaction  
> **username_1**: @GiangNguyen If verbose is false, it returns only txids. If verbose is true, it returns a detailed JSON object for each transaction.  
> **username_2**: awesome! I didn't notice that. Thanks!!  

---

### Answer by username_2 on 2020-03-06. Score: 2

Based on username_1 username_1's answer, I found the more specific answer to the OP would be using `getmempoolentry`, in order to get an individual transaction info. Otherwise you'll be flooded with tons of transactions. Documented [here](https://chainquery.com/bitcoin-cli/getmempoolentry)

You can also use `gettransaction`, it returns `bip125-replaceable` flag as well, however just for Bitcore prior to 0.10.0 according to [this](https://chainquery.com/bitcoin-cli/gettransaction)

> **Comments:**
> **username_1**: Ah, good point, I didn't actually realize an option for a single tx was added in 0.13!  

---

