24 releases

Uses new Rust 2024

0.4.1-rc.1 Oct 8, 2025
0.4.0 Oct 2, 2025
0.4.0-rc.5 Sep 30, 2025
0.2.16 Aug 19, 2025
0.2.12 Jul 26, 2025

#22 in #extrinsic

Download history 259/week @ 2025-07-09 833/week @ 2025-07-16 310/week @ 2025-07-23 130/week @ 2025-07-30 123/week @ 2025-08-06 231/week @ 2025-08-13 85/week @ 2025-08-20 5/week @ 2025-08-27 14/week @ 2025-09-03 90/week @ 2025-09-17 376/week @ 2025-09-24 273/week @ 2025-10-01 209/week @ 2025-10-08 12/week @ 2025-10-15 37/week @ 2025-10-22

660 downloads per month
Used in avail-rust-client

MIT and maybe GPL-3.0-or-later…

240KB
7K SLoC

Avail Rust Core

Avail Rust Core provides the low-level building blocks for interacting with Avail data-availability networks from Rust.

This crate ships the strongly-typed runtime metadata, SCALE helpers, storage abstractions, and RPC utilities that power the higher-level avail-rust-client crate. Use it when you want tight control over encoding/decoding Avail extrinsics, events, and storage entries without pulling in a full client stack.

What You Get

  • Avail-specific runtime types (AccountId, RuntimeCall, pallet storage definitions, and more).
  • Helpers to encode/decode extrinsics, events, and receipts via TransactionDecodable, TransactionEventDecodable, and related traits.
  • Storage traits (StorageValue, StorageMap, StorageDoubleMap) with iterators and hashing helpers to fetch and decode on-chain data.
  • Lightweight RPC helpers built on subxt, including tools for fetching raw blocks, events, and extrinsics.
  • Dual-target support: native (std) and wasm feature flags expose the same API with the right transport integrations for each environment.

Feature Flags

  • native (default): Enables std support plus native RPC transports.
  • wasm: Enables bindings required for WebAssembly environments.

Enable exactly one of these targets; the crate deliberately avoids picking a transport for you so that it can stay lightweight.

  • avail-rust-client: Batteries included client that wraps avail-rust-core with RPC transport, signing, and ergonomic submission helpers.
  • avail-rust examples: Real-world programs that showcase how the core types are meant to be used.

License

This project is primarily distributed under the terms of MIT license. See LICENSE

Dependencies

~19–43MB
~673K SLoC