| Crates.io | gsdk |
| lib.rs | gsdk |
| version | 1.9.1 |
| created_at | 2023-06-19 09:24:30.367058+00 |
| updated_at | 2025-09-05 14:24:03.762703+00 |
| 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 | 933,761 |
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