• Stars
    star
    259
  • Rank 156,650 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 3 years ago
  • Updated 5 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

✨ 🐍 Python SDK for Starknet.
starknet.py

Starknet SDK for Python

codecov pypi build docs license stars starkware

📘 Documentation

⚙️ Installation

Installation varies between operating systems.

See our documentation on complete instructions

▶️ Example usage

Asynchronous API

This is the recommended way of using the SDK.

from starknet_py.contract import Contract
from starknet_py.net.gateway_client import GatewayClient

contract = await Contract.from_address(
    address="0x06689f1bf69af5b8e94e5ab9778c885b37c593d1156234eb423967621f596e73",
    client=GatewayClient("testnet"),
)
(value,) = await contract.functions["get_balance"].call()

Synchronous API

You can access synchronous world with _sync postfix.

from starknet_py.contract import Contract
from starknet_py.net.gateway_client import GatewayClient

contract = Contract.from_address_sync(
    address="0x06689f1bf69af5b8e94e5ab9778c885b37c593d1156234eb423967621f596e73",
    client=GatewayClient("testnet"),
)
(value,) = contract.functions["get_balance"].call_sync()

For more examples click here.

More Repositories

1

react-native-reanimated

React Native's Animated library reimplemented
TypeScript
8,806
star
2

react-native-svg

SVG library for React Native, React Native Web, and plain React web projects.
Java
7,414
star
3

react-native-gesture-handler

Declarative API exposing platform native touch and gesture system to React Native.
TypeScript
6,009
star
4

react-native-screens

Native navigation primitives for your React Native app.
TypeScript
3,005
star
5

react-freeze

Prevent React component subtrees from rendering.
TypeScript
1,539
star
6

react-native-ide

VSCode extension that turns your editor into a fully fledged IDE for React Native and Expo.
JavaScript
845
star
7

protostar

Protostar is a toolchain for developing and testing Starknet contracts
Python
247
star
8

scarb

The Cairo package manager
Rust
178
star
9

live-compositor

Media server for real-time, low latency, programmable video and audio mixing.
Rust
146
star
10

TypeGPU

TypeGPU is a TypeScript library that enhances the WebGPU API, allowing resource management in a type-safe, declarative way.
TypeScript
71
star
11

starknet-jvm

Starknet SDK for JVM languages (Java, Kotlin, Scala)
Kotlin
63
star
12

state-of-react-native

Repository for collaborating on the shape of the State of React Native surveys.
63
star
13

starknet.swift

Starknet SDK for Swift language
Swift
24
star
14

cairo-profiler

Profiler for Cairo programming language & Starknet
Rust
24
star
15

setup-scarb

Sets up Scarb in your GitHub Actions workflow.
JavaScript
19
star
16

docker-janus-gateway

Docker image of the Janus Gateway
Dockerfile
18
star
17

universal-sierra-compiler

Rust
12
star
18

asdf-scarb

Scarb plugin for the asdf version manager
Shell
7
star
19

cairo-coverage

Code coverage tool for cairo
Rust
6
star
20

scarb-nightlies

This repository stores nightly builds of Scarb, go to Releases to obtain them
3
star
21

software-mansion.github.io

2
star