Returns mempool data for given transaction
Arguments:
- "txid" (string, required) The transaction id (must be in mempool)
Request
curl 'https://rpc.web3api.io?x-api-key=YOUR-API-KEY' \
-X POST \
-H 'x-amberdata-blockchain-id: bitcoin-mainnet' \
-d '{"jsonrpc":"2.0","id":1,"method":"getmempoolentry","params":["b162685a7cae209861c9716f86d41cd43edd32e841ecbbd129099d78f4a78732"]}'
Response
{
"result": {
"fees": {
"base": 0.0005,
"modified": 0.0005,
"ancestor": 0.0005,
"descendant": 0.0005
},
"size": 224,
"fee": 0.0005,
"modifiedfee": 0.0005,
"time": 1570129412,
"height": 597722,
"descendantcount": 1,
"descendantsize": 224,
"descendantfees": 50000,
"ancestorcount": 1,
"ancestorsize": 224,
"ancestorfees": 50000,
"wtxid": "b162685a7cae209861c9716f86d41cd43edd32e841ecbbd129099d78f4a78732",
"depends": [],
"spentby": [],
"bip125-replaceable": false
},
"error": null,
"id": 1
}