Crates.io | gsdk |
lib.rs | gsdk |
version | 1.6.2 |
source | src |
created_at | 2023-06-19 09:24:30.367058 |
updated_at | 2024-10-07 14:25:54.318772 |
description | Rust SDK of the Gear network |
homepage | https://gear-tech.io |
repository | https://github.com/gear-tech/gear |
max_upload_size | |
id | 893965 |
size | 632,727 |
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_keep_alive("//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