allfeat-client

Crates.ioallfeat-client
lib.rsallfeat-client
version0.2.1
created_at2025-07-27 00:03:07.260508+00
updated_at2025-09-01 21:38:56.358854+00
descriptionClient logic for the Allfeat SDK
homepagehttps://allfeat.org
repositoryhttps://github.com/Allfeat/allfeat-sdk
max_upload_size
id1769545
size293,999
Blockchain Developers (github:allfeat:blockchain-developers)

documentation

README

🔌 Allfeat Client

A Rust crate that extends subxt with additional capabilities specifically designed for the Allfeat ecosystem, providing enhanced functionality for interacting with Allfeat blockchain networks and exporting metadata for ecosystem networks.

Features

  • 🌐 Subxt Extension: Enhanced capabilities built on top of the subxt client library
  • 📊 Metrics Collection: Comprehensive network statistics for Allfeat ecosystem
  • 🔧 Transaction Building: Streamlined transaction creation and submission
  • 🏗️ Ecosystem Integration: Pre-configured metadata for Allfeat network chains

Quick Start

use allfeat_client::{AllfeatOnlineClient, AllfeatMetrics};
use subxt::OnlineClient;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = OnlineClient::from_url("wss://melodie-rpc.allfeat.io").await?;

    let active_wallets = client.get_active_wallets_count().await?;
    let total_midds = client.get_all_midds_created_count().await?;

    println!("Active wallets: {}, Total MIDDS: {}", active_wallets, total_midds);
    Ok(())
}

Available Metrics

Method Description
get_active_wallets_count() Active wallets with balance > existential deposit
get_works_created_count() Total musical works registered
get_tracks_created_count() Total tracks registered
get_releases_created_count() Total releases registered
get_all_midds_created_count() Sum of all MIDDS types

Dependencies

Commit count: 44

cargo fmt