gsdk

Crates.iogsdk
lib.rsgsdk
version1.6.2
sourcesrc
created_at2023-06-19 09:24:30.367058
updated_at2024-10-07 14:25:54.318772
descriptionRust SDK of the Gear network
homepagehttps://gear-tech.io
repositoryhttps://github.com/gear-tech/gear
max_upload_size
id893965
size632,727
Dmitrii Novikov (breathx)

documentation

https://docs.rs/gsdk

README

GSDK

CI docs

Rust SDK for gear network.

Example

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 {
        // ...
    }
}

License

GPL v3.0 with a classpath linking exception

Commit count: 3415

cargo fmt