The getmempoolentry RPC returns mempool data for given transaction (must be in mempool).
*bitcoin-cli help getmempoolentry
getmempoolentry "txid" Returns mempool data for given transaction Arguments: 1. txid (string, required) The transaction id (must be in mempool) Result: { (json object) "size" : n, (numeric) virtual transaction size as defined in BIP 141. This is different from actual serialized size for witness transactions as witness data is discounted. ] "spentby" : [ (array) unconfirmed transactions spending outputs from this transaction "transactionid", (string) child transaction id ... ] "bip125-replaceable" : true|false, (boolean) Whether this transaction could be replaced due to BIP125 (replace-by-fee) } Examples: > bitcoin-cli getmempoolentry "mytxid" > curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmempoolentry", "params": ["mytxid"] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/
-
-
-