arweave-rs icon indicating copy to clipboard operation
arweave-rs copied to clipboard

Arweave Rust SDK

arweave_rs

Arweave Rust SDK.

installation

Add arweave_rs to your Cargo.toml

[dependencies]
arweave-rs = { git = "https://github.com/nestdotland/arweave-rs" }

example

use arweave-rs::api::{Api, Protocol};
use arweave-rs::tx::Transaction;

// Interact with the HTTP API
let api = Api::new("arweave.net", Protocol::HTTPS, 443);
let height = api.network_info().await?;

// Work with transactions
let txs = Transaction::new(api);
let price = txs.get_price("100", "vT90H6CshD4xHzIU9h6gUF3WsTOuj2a4cpn1v2CfvkQ");