title: Call JSON-RPC using nodejs
body: <p>I am trying to call json-rpc call through request module of nodejs.</p>
  
  <p>json-rpc call is in following format</p>
  
  <pre><code>curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getreceivedbyaddress", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XZ", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/
  </code></pre>
  
  <p>How to call such json-rpc call using <strong>request</strong> npm package of nodejs ??</p>