You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: develop/toolkit/api-libraries/subxt.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ description: Subxt is a Rust library for type-safe interaction with Polkadot SDK
7
7
8
8
## Introduction
9
9
10
-
subxt is a Rust library designed for interacting with Polkadot SDK-based blockchains. It provides a type-safe interface for submitting transactions, querying on-chain state, and performing other blockchain interactions. By leveraging Rust’s strong type system, subxt ensures that your code is validated at compile time, reducing runtime errors and improving reliability.
10
+
subxt is a Rust library designed to interact with Polkadot SDK-based blockchains. It provides a type-safe interface for submitting transactions, querying on-chain state, and performing other blockchain interactions. By leveraging Rust’s strong type system, subxt ensures that your code is validated at compile time, reducing runtime errors and improving reliability.
11
11
12
12
## Prerequisites
13
13
@@ -23,7 +23,7 @@ Before using subxt, ensure you have the following installed:
23
23
24
24
To use subxt in your project, you need to install the necessary dependencies. Each plays a specific role in enabling interaction with the blockchain:
25
25
26
-
1. **Install the subxt CLI** - [`subxt-cli`](https://crates.io/crates/subxt-cli){target=\_blank} is a command-line tool that provides utilities for working with Polkadot SDK metadata. In the context of subxt, it is essential for downloading chain metadata, which is required to generate type-safe Rust interfaces for interacting with the blockchain. Install it using:
26
+
1. **Install the subxt CLI** - [`subxt-cli`](https://crates.io/crates/subxt-cli){target=\_blank} is a command-line tool that provides utilities for working with Polkadot SDK metadata. In the context of subxt, it is essential to download chain metadata, which is required to generate type-safe Rust interfaces for interacting with the blockchain. Install it using:
27
27
28
28
```bash
29
29
cargo install subxt-cli
@@ -100,15 +100,15 @@ To interact with a blockchain node using subxt, create an asynchronous main func
100
100
101
101
subxt provides multiple ways to access on-chain data:
102
102
103
-
- Constants - constants are predefined values in the runtime that remain unchanged unless modified by a runtime upgrade
103
+
- **Constants** - constants are predefined values in the runtime that remain unchanged unless modified by a runtime upgrade
104
104
105
105
For example, to retrieve the existential deposit, use:
0 commit comments