Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: danda on August 05, 2019, 03:56:10 PM



Title: jsonrpc-cli - a simple CLI tool for one-off jsonrpc queries and debugging.
Post by: danda on August 05, 2019, 03:56:10 PM
I was having issues with c-lightning and spruned a while back and I wanted to execute queries and see the raw http request and response.  I couldn't find such a tool, so I made one, jsonrpc-cli (https://github.com/dan-da/jsonrpc-cli).   Maybe some others will find it useful when querying bitcoind, etc.

This first release has the following significant features:

  • perform arbitrary jsonrpc requests to any jsonrpc server over http
  • pass method name and arguments as command line args
  • supports http basic auth
  • log raw http request/response to a file
  • raw or pretty printed json results, or display other structured formats: yaml, php print_r, etc
  • colorized results (syntax highlighting)
  • configurable request timeout
  • option to display/hide jsonrpc response wrapper/envelope.
  • detailed logging of each request

I intend to announce any new releases in this thread.

Please report issues or enhancement requests on github.