Skip to content

Commit 40b3e11

Browse files
committed
Apply suggestions
1 parent 12de153 commit 40b3e11

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

develop/toolkit/api-libraries/subxt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ subxt is a Rust library designed to interact with Polkadot SDK-based blockchains
1111

1212
## Prerequisites
1313

14-
Before using subxt, ensure you have the following installed:
14+
Before using subxt, ensure you have the following requirements:
1515

1616
- Rust and Cargo installed on your system. You can install them using [Rustup](https://rustup.rs/){target=\_blank}
1717
- A Rust project initialized. If you don’t have one, create it with:

llms.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7776,11 +7776,11 @@ description: Subxt is a Rust library for type-safe interaction with Polkadot SDK
77767776

77777777
## Introduction
77787778

7779-
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.
7779+
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.
77807780

77817781
## Prerequisites
77827782

7783-
Before using subxt, ensure you have the following installed:
7783+
Before using subxt, ensure you have the following requirements:
77847784

77857785
- Rust and Cargo installed on your system. You can install them using [Rustup](https://rustup.rs/){target=\_blank}
77867786
- A Rust project initialized. If you don’t have one, create it with:
@@ -7792,7 +7792,7 @@ Before using subxt, ensure you have the following installed:
77927792

77937793
To use subxt in your project, you need to install the necessary dependencies. Each plays a specific role in enabling interaction with the blockchain:
77947794

7795-
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:
7795+
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:
77967796

77977797
```bash
77987798
cargo install subxt-cli
@@ -7883,7 +7883,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
78837883
// Define the node URL.
78847884
const NODE_URL: &str = "INSERT_NODE_URL";
78857885

7886-
// Initialize the Subxt client for interacting with the blockchain.
7886+
// Initialize the Subxt client to interact with the blockchain.
78877887
let api = OnlineClient::<PolkadotConfig>::from_url(NODE_URL).await?;
78887888

78897889
// A query to obtain some constant.
@@ -7953,7 +7953,7 @@ Ok(())
79537953

79547954
subxt provides multiple ways to access on-chain data:
79557955

7956-
- Constants - constants are predefined values in the runtime that remain unchanged unless modified by a runtime upgrade
7956+
- **Constants** - constants are predefined values in the runtime that remain unchanged unless modified by a runtime upgrade
79577957

79587958
For example, to retrieve the existential deposit, use:
79597959

@@ -7966,7 +7966,7 @@ subxt provides multiple ways to access on-chain data:
79667966
println!("Existential deposit: {:?}", value);
79677967
```
79687968

7969-
- State - state refers to the current chain data, which updates with each block
7969+
- **State** - state refers to the current chain data, which updates with each block
79707970

79717971
To fetch account information, replace `INSERT_ADDRESS` with the address you want to fetch data from and use:
79727972

0 commit comments

Comments
 (0)