gsdk 1.0.4-rc.0

Rust SDK of the Gear network
Documentation

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("//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