sncast_std 0.23.4
sncast_std
sncast_std is a Cairo library designed for handling and interacting with the Starknet blockchain. It provides a set of utilities and error definitions to facilitate communication with Starknet contracts, allowing for transaction management, contract invocation, and other blockchain operations.
Get a nonce of an account for a given block tag (pending or latest) as felt252.
block_tag - block tag name, one of pending or latest.use sncast_std::{get_nonce};
fn main() {
let nonce = get_nonce('latest');
println!("nonce: {}", nonce);
println!("debug nonce: {:?}", nonce);
}
Version 0.23.4
Uploaded 1 year ago
Size 3.6 KB
Run the following command in your project dir
scarb add sncast_std@0.23.4
Or add the following line to your Scarb.toml
sncast_std = "0.23.4"