Skip to content

ledamint-IO/rust-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bundlr Rust SDK (WIP)

Example

use bundlr_sdk::{Bundlr, SolanaSigner, tags::Tag};

#[tokio::main]
async fn main() {
    let signer = SolanaSigner::from_base58("key");
    let bundlr = Bundlr::new(
        "https://node1.bundlr.network".to_string(),
        "solana".to_string(),
        "sol".to_string(),
        signer
    );
    let tx = bundlr.create_transaction_with_tags("hello".into(), vec![Tag::new("hello".into(), "world".into())]);

    // Will return Err if not success
    let response = bundlr.send_transaction(tx).await.unwrap();
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 99.1%
  • Shell 0.9%