Logo

starknet-rs

Complete StarkNet library in Rust

starknet-version-v0.9.0 linting-badge crates-badge

Note that starknet-rs is still experimental. Breaking changes will be made before the first stable release. The library is also NOT audited or reviewed for security at the moment. Use at your own risk.

The underlying cryptography library starknet-crypto does NOT provide constant-time guarantees.

Adding starknet-rs to your project

Note that the crates.io version is currently outdated, and you're advised to use it from GitHub directly instead:

toml [dependencies] starknet = { git = "https://github.com/xJonathanLEI/starknet-rs" }

Features

Crates

This workspace contains the following crates:

Example

Examples can be found in the examples folder:

  1. Get the latest block from alpha-goerli testnet

  2. Deploy contract to alpha-goerli testnet

  3. Mint yourself 1,000 TST tokens on alpha-goerli

    Make sure your account has some L2 Goerli ETH to pay for the transaction fee. You can use this faucet to fund your account.

  4. Declare contract on alpha-goerli testnet

License

Licensed under either of

at your option.