We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd29e98 commit 80ddadeCopy full SHA for 80ddade
.snippets/code/develop/toolkit/api-libraries/subxt/subxt.rs
@@ -15,10 +15,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
15
// Initialize the Subxt client for interacting with the blockchain.
16
let api = OnlineClient::<PolkadotConfig>::from_url(NODE_URL).await?;
17
18
- // A query to obtain some contant:
+ // A query to obtain some constant.
19
let constant_query = polkadot::constants().balances().existential_deposit();
20
21
- // Obtain the value:
+ // Obtain the value.
22
let value = api.constants().at(&constant_query)?;
23
24
println!("Existential deposit: {:?}", value);
0 commit comments