Skip to content

TigerInYourDream/bitcoin-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

    let rpc = client::BitcoinRPC::new();
    let balance =rpc.get_balance().unwrap();
    println!("{:?}", balance);
    
    let new_address:NewAddress = rpc.get_new_address(None).unwrap();
    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.

About

A bitcoin rpc client build in rust

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages