Author

Topic: RPC Getting mempool transactions (Read 1370 times)

hero member
Activity: 692
Merit: 569
July 02, 2015, 05:36:17 AM
#4
Tried batched json rpc, its awesome . Now getting all mempool tx in less than one seconds

Thanks a lot  Grin
hero member
Activity: 692
Merit: 569
July 01, 2015, 11:37:30 PM
#3
You can call
Code:
getrawmempool true
(mind the true = verbose).

If you have to do multiple rpc calls, check out the JSON RPC 2.0 batching options (since bitcoind 0.7 aggregate multiple rpc calls in one). If you need more details check the bitcoin-core source and search after
Code:
static string JSONRPCExecBatch(const UniValue& vReq)

There is a pull request for mempool REST call (https://github.com/bitcoin/bitcoin/pull/6013).

Thanks
Batched json rpc sounds good.  I am using https://github.com/jgarzik/python-bitcoinrpc , not sure if it supports batch mode , will try .
member
Activity: 66
Merit: 16
bitcoin core contributor
July 01, 2015, 03:02:59 PM
#2
You can call
Code:
getrawmempool true
(mind the true = verbose).

If you have to do multiple rpc calls, check out the JSON RPC 2.0 batching options (since bitcoind 0.7 aggregate multiple rpc calls in one). If you need more details check the bitcoin-core source and search after
Code:
static string JSONRPCExecBatch(const UniValue& vReq)

There is a pull request for mempool REST call (https://github.com/bitcoin/bitcoin/pull/6013).
hero member
Activity: 692
Merit: 569
July 01, 2015, 01:03:10 AM
#1
What is the correct way to get detail of mempool transactions

Right now I am calling getrawpool and then doing getrawtransaction on each of the mempool transactions. Doing RPC for each transaction is very slow taking an average of 30 seconds

Is there a faster RPC method for doing this, so that I can get consolidated raw mempool transactions in one go ?

Jump to: