Parameters
- txidstringREQUIRED
The transaction id, and it must be in mempool
- verboseboolean
default=false. It's true for a JSON object and false for array of transaction ids
Returns
- (for verbose = false)array
When
verboseisfalse(the default),resultis an array of transaction ids for in-mempool ancestor transactions.- hexstring
The transaction id of an in-mempool ancestor transaction
- (for verbose = true)object
When
verboseistrue,resultis a JSON object mapping each ancestor transaction id to its detailed transaction data.- transactionidobject
The transaction id
- vsizeinteger
The virtual transaction size as defined in BIP 141. This is different from actual serialized size for witness transactions as witness data is discounted
- weightinteger
The transaction weight as defined in BIP 141
- timeinteger
The local time transaction entered pool in seconds since 1 Jan 1970 GMT
- heightinteger
The block height when the transaction entered pool
- descendantcountinteger
The number of in-mempool descendant transactions (including this one)
- descendantsizeinteger
The virtual transaction size of in-mempool descendants (including this one)
- ancestorcountinteger
The number of in-mempool ancestor transactions (including this one)
- ancestorsizeinteger
The virtual transaction size of in-mempool ancestors (including this one)
- wtxidstring
The hash of serialized transaction, including witness data
- feesobject
A JSON array containing information about the transaction fee paid by the transaction
- basenumber
The transaction fee in BTC
- modifiednumber
The transaction fee with fee deltas used for mining priority in BTC
- ancestornumber
The modified fees of in-mempool ancestors (including this one) in BTC
- descendantnumber
The modified fees of in-mempool descendants (including this one) in BTC
- dependsarray
Unconfirmed transactions used as inputs for this transaction
- hexstring
The parent transaction id
- spentbyarray
Unconfirmed transactions spending outputs from this transaction
- hexstring
The child transaction id
- bip125-replaceableboolean
Whether this transaction could be replaced due to BIP125 (replace-by-fee)
- unbroadcastboolean
Whether this transaction is currently unbroadcast (initial broadcast not yet acknowledged by any peers)
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"89abcdef0123456789abcdef0123456789abcdef0123456789abcdef01234567": {6"vsize": 223,7"weight": 892,8"time": 1682624845,9"height": 784125,10"descendantcount": 1,11"descendantsize": 223,12"ancestorcount": 3,13"ancestorsize": 667,14"wtxid": "123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0",15"fees": {16"base": 0.0000155,17"modified": 0.0000155,18"ancestor": 0.0000575,19"descendant": 0.000015520},21"depends": [22"be3c84aa440779532a48232a67bea63e6756d614e194388a3e0102680fd69475"23],24"spentby": [],25"bip125-replaceable": false,26"unbroadcast": false27}28}29}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"89abcdef0123456789abcdef0123456789abcdef0123456789abcdef01234567": {6"vsize": 223,7"weight": 892,8"time": 1682624845,9"height": 784125,10"descendantcount": 1,11"descendantsize": 223,12"ancestorcount": 3,13"ancestorsize": 667,14"wtxid": "123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0",15"fees": {16"base": 0.0000155,17"modified": 0.0000155,18"ancestor": 0.0000575,19"descendant": 0.000015520},21"depends": [22"be3c84aa440779532a48232a67bea63e6756d614e194388a3e0102680fd69475"23],24"spentby": [],25"bip125-replaceable": false,26"unbroadcast": false27}28}29}