Crates.io | subxt-lightclient |
lib.rs | subxt-lightclient |
version | 0.38.0 |
source | src |
created_at | 2023-07-24 16:21:35.667387 |
updated_at | 2024-10-24 14:46:07.566482 |
description | Light Client for chain interaction |
homepage | https://www.parity.io/ |
repository | https://github.com/paritytech/subxt |
max_upload_size | |
id | 924721 |
size | 65,617 |
Subxt is a library for interacting with Substrate based nodes in Rust and WebAssembly. It can:
#[no_std]
environment via the subxt-core
crate.smoldot
) to interact with chains.Take a look in the examples folder or the examples folder for various smaller or
larger subxt
usage examples, or read the guide to learn more.
Use the subxt-cli
tool to download the metadata for your target runtime from a node.
cargo install subxt-cli
subxt metadata -f bytes > metadata.scale
This defaults to querying the metadata of a locally running node on the default http://localhost:9933/
. If querying
a different node then the metadata
command accepts a --url
argument.
For more details regarding utilizing subxt, please visit the documentation.
Most tests require a running substrate node to communicate with. This is done by spawning an instance of the
substrate node per test. It requires an up-to-date substrate
executable on your path.
This can be installed from source via cargo:
cargo install --git https://github.com/paritytech/polkadot-sdk staging-node-cli --force
Please add your project to this list via a PR.
subxt
for allowing developers to conduct End-to-End testing of their contracts.Alternatives
substrate-api-client provides similar functionality.
The entire code within this repository is dual licensed under the GPL-3.0 or Apache-2.0 licenses. See the LICENSE file for more details.
Please contact us if you have questions about the licensing of our products.