| Crates.io | stellar_wallet |
| lib.rs | stellar_wallet |
| version | 0.1.0 |
| created_at | 2025-02-25 18:58:14.954407+00 |
| updated_at | 2025-02-25 18:58:14.954407+00 |
| description | This project is a Rust library for interacting with the Stellar network, offering essential functionalities for developers looking to integrate XLM operations into their applications. |
| homepage | |
| repository | https://github.com/Luan-Web3/stellar-wallet |
| max_upload_size | |
| id | 1569459 |
| size | 10,421 |
This project is a Rust library for interacting with the Stellar network, offering essential functionalities for developers looking to integrate XLM operations into their applications. The library provides:
cargo add stellar_wallet
use stellar_wallet::Keys;
fn main() {
let (public_key, private_key) = Keys::generate_stellar_keys().unwrap();
...
let sodium_key_pair = Keys::get_public_key_from_private("SDLS7LO7QQ...")?;
...
}
use stellar_wallet::Stellar;
#[tokio::main]
async fn main() {
let stellar = Stellar::new("https://horizon-testnet.stellar.org");
let _ = stellar.fund_account_with_friendbot("GCR4EZFL7K...").await;
...
let _ = stellar.get_balance("GCR4EZFL7K...").await;
...
let _ = stellar.transfer_xlm("SDLS7LO7QQ...", "GCR4EZFL7K..", "1").await;
...
}