Bitcoind-rpc

Hi All, how I can get Blocks via bitcoind-rpc?
thanks

Here is a full list of available commands: https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list

You can also take a look at the callspec: https://github.com/bitpay/bitcoind-rpc/blob/master/lib/index.js#L129

var Client = require('bitcoind-rpc');
var bitcore = require('bitcore');

var config = {
  protocol: 'https',
  user: 'user',
  pass: 'password',
  host: '127.0.0.1',
  port: '18332'
};

var rpc = new Client(config);

rpc.getBlock('00000000df9952ea8ed4ba4561bf67f2e895c51aed7fb44bda5f39b42ea5a5ad', false, function(err, data) {
  var block = new bitcore.Block.fromString(data.result);
  console.log(block.hash);
  // 00000000df9952ea8ed4ba4561bf67f2e895c51aed7fb44bda5f39b42ea5a5ad
});