项目作者: TigerInYourDream

项目描述 :
A bitcoin rpc client build in rust
高级语言: Rust
项目地址: git://github.com/TigerInYourDream/bitcoin-rpc.git
创建时间: 2019-10-15T09:08:15Z
项目社区:https://github.com/TigerInYourDream/bitcoin-rpc

开源协议:MIT License

下载


bitcoin-rpc

A bitcoin rpc client build in rust.

If you want to use it, you can configure rpc-password and rpc-username in src/config.rs

This program is based on bitcoin-0.18. Some functions in this,will be changed in future versions. I’ll change it to a lib in future.

Here are some examples

  1. let rpc = client::BitcoinRPC::new();
  2. let balance =rpc.get_balance().unwrap();
  3. println!("{:?}", balance);
  4. let new_address:NewAddress = rpc.get_new_address(None).unwrap();
  5. println!("{:?}", new_address);

You can also find example in example/example.rs. You can also send raw Json data via it. You can build a entirely transaction via it.