sncast_std 0.23.4

sncast_std

Readme

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.

Features

  • Error Handling: Defines comprehensive error types for various Starknet operations.
  • Transaction Management: Functions to call, declare, deploy, and invoke contracts on Starknet.
  • Custom Traits: Implements display traits for various data types for better readability and debugging.

Example Usage

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);
}

Metadata

Version 0.23.4

Uploaded 6 months ago

Size 3.6 KB

Installation

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"

Monthly downloads

Links

Homepage github.com/foundry-rs/starknet-foundry

Owners