sncast_std 0.23.7
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.7
Uploaded 6 months ago
Size 3.7 KB
Run the following command in your project dir
scarb add sncast_std@0.23.7
Or add the following line to your Scarb.toml
sncast_std = "0.23.7"