1 unstable release
0.1.1 | Dec 7, 2023 |
---|---|
0.1.0 |
|
#350 in #sdk
44 downloads per month
24KB
597 lines
PWR chain Rust SDK
Create wallet
let wallet = Wallet::random();
Create RPC
let wallet = Wallet::random();
let rpc = RPC::new("https://pwrrpc.pwrlabs.io/").unwrap();
let balance = rpc.balance_of_address(&wallet.address()).await.unwrap();
lib.rs
:
PWR chain Rust SDK
Create wallet
let wallet = Wallet::random();
Create RPC
# use pwr_rs::wallet::Wallet;
# use pwr_rs::rpc::RPC;
# let wallet = Wallet::random();
let rpc = RPC::new("https://pwrrpc.pwrlabs.io/").unwrap();
let balance = rpc.balance_of_address(&wallet.address()).await.unwrap();
Dependencies
~10–24MB
~313K SLoC