| Crates.io | glin-client |
| lib.rs | glin-client |
| version | 0.1.4 |
| created_at | 2025-10-05 04:26:09.169088+00 |
| updated_at | 2025-10-10 12:54:43.235854+00 |
| description | Network connection and RPC operations for GLIN Network |
| homepage | https://docs.glin.ai/sdk/rust/setup |
| repository | https://github.com/glin-ai/glin-sdk-rust |
| max_upload_size | |
| id | 1868606 |
| size | 104,837 |
This crate provides high-level client functionality for interacting with GLIN Network nodes:
Add this to your Cargo.toml:
[dependencies]
glin-client = "0.1.0"
tokio = { version = "1", features = ["full"] }
use glin_client::{create_client, get_dev_account};
#[tokio::main]
async fn main() -> anyhow::Result<()> {
// Connect to local node
let client = create_client("ws://localhost:9944").await?;
// Get development account
let account = get_dev_account("alice")?;
// Query account balance
let balance = client.get_balance(&account.public_key()).await?;
println!("Balance: {}", balance);
Ok(())
}
This crate is part of the GLIN SDK for Rust, providing complete blockchain interaction capabilities for GLIN Network.
glin-types - Shared type definitionsglin-contracts - Contract deployment and interactionFor full SDK documentation and examples, see the main repository.
Apache-2.0