bitcoin-rpc 0.1.2

Bitcoin Rpc API client for rust.
bitcoin-rpc-0.1.2 doesn't have any documentation.

Bitcoin RPC

This crate implements an Bitcoin RPC client in rust, this cate doesn't intends to be a complete implementation of all the bitcoin rpc methods so if you need some method you can create a pull request for it.

AltCoins

I don't have tested it for other cryptocurrencies, only bitcoin was tested.

Usage

Add this to your Cargo.toml:

[dependencies]
bitcoin-rpc = "0.1.2"

And this to your crate root:

extern crate bitcoin_rpc;

Example: Connecting to bitcoin rpc server

extern crate bitcoinrpc;

use bitcoinrpc::BitcoinRpc;

fn main() {
    let client = BitcoinRpc::new("example.org:8331", None, None);

    let block_count = match client.getblockcount() {
        Ok(b) => b,
        Err(e) => panic!("error: {}", e);
    }

    println!("Block count: {}", block_count);
}

License

    Rust Bitcoin RPC API client.
    Copyright (C) 2016  Jean Pierre De Jesus Dudey Diaz

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.