Feature Request (RPC): Specify a txid when calling getrawmempool in verbose mode #10300

issue dabura667 opened this issue on April 30, 2017
  1. dabura667 commented at 4:14 AM on April 30, 2017: none

    bitcoin-cli getrawmempool true

    Currently this command returns all transactions in the mempool. it would be nice to have an extra arg dependent on verbose mode. (It would have no meaning in non-verbose mode)

    ie.:

    bitcoin-cli getrawmempool true 7dde270e7071667c5d53b073f1d7854319696ea10202e0fb8874c2361dcdd6da
    

    Which would only return that single transaction if it is still unconfirmed and return empty if it has already confirmed or does not exist in your mempool.

    ie.:

    {
      "7dde270e7071667c5d53b073f1d7854319696ea10202e0fb8874c2361dcdd6da": {
        "size": 258,
        "fee": 0.00050000,
        "modifiedfee": 0.00050000,
        "time": 1493525525,
        "height": 464139,
        "startingpriority": 0,
        "currentpriority": 0,
        "descendantcount": 1,
        "descendantsize": 258,
        "descendantfees": 50000,
        "ancestorcount": 2,
        "ancestorsize": 516,
        "ancestorfees": 100000,
        "depends": [
          "8fb66a50a714462308fbaff262abe15d85a5823b7e8cbdefff23c2076685373f"
        ]
      }
    }
    

    Use case: Child Pays For Parent fee calculation by looking at ancestorsize and ancestorfees.

  2. fanquake added the label RPC/REST/ZMQ on Apr 30, 2017
  3. kallewoof referenced this in commit 0300d5e556 on May 1, 2017
  4. sipa commented at 10:46 PM on May 1, 2017: member

    Isn't that what getmempoolentry does?

  5. paveljanik commented at 6:55 AM on May 4, 2017: contributor

    It is. @dabura667 Is your issue solved now? If it is, let's close this issue please.

  6. dabura667 commented at 9:00 AM on May 4, 2017: none

    #10310

    This issue will continue on in the above issue.

  7. dabura667 closed this on May 4, 2017

  8. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me