2

Some bitcoind commands have optional params. For example, when doing "bitcoind help", it says the getrawmempool has a "verbose" param.

But no matter what I try, I can't seem to set this param on the command line. I've tried this:

bitcoind -verbose getrawmempool
bitcoind getrawmempool verbose
bitcoind getrawmempool -verbose
bitcoind getrawmempool verbose=1
bitcoind getrawmempool -verbose=1
bitcoind getrawmempool {"verbose":"1"}
bitcoind getrawmempool {"verbose":"true"}
bitcoind getrawmempool {\"verbose\":\"1\"}
bitcoind getrawmempool {\"verbose\":\"true\"}

Especially notice how the last few result in "error: value type is obj, expected bool" whereas the others give "error parsing JSON".

What should I type on the command line exactly in order to execute the 'getrawmempool' with the 'verbose' parameter?

2 Answers 2

2

Usually it's fairly descriptive if you know what's going on, for example it looks for a boolean on the end of that command, so this will do as you wish.

bitcoin-cli getrawmempool true

bitcoin-cli has replaced bitcoind for RPC commands, you'll need to get used to it as the RPC client is being removed from the bitcoind binary fairly soon.

0

to answer the original question:

$ bitcoind getrawmempool true

will pass "true" to the verbose parameter (and will give you the verbose output)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.