GSDK
Rust SDK for gear network.
Example
use Signer;
async
License
GPL v3.0 with a classpath linking exception
Rust SDK for gear network.
use gsdk::signer::Signer;
#[tokio::main]
async fn main() {
// Connect to "wss://rpc-node.gear-tech.io:443" by default.
let signer = Api::new(None).signer("//Alice", None);
// Transaction with block details.
let tx = signer.transfer("//Bob", 42).await.expect("Transfer value failed.");
// Fetch all of the events associated with this transaction.
for events in tx.fetch_events().await {
// ...
}
}
GPL v3.0 with a classpath linking exception