Skip to main content
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.full_node_client import FullNodeClient

contract = await Contract.from_address(
    address="0x06689f1bf69af5b8e94e5ab9778c885b37c593d1156234eb423967621f596e73",
    client=FullNodeClient(node_url="https://your.node.url"),
)
(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.full_node_client import FullNodeClient

contract = Contract.from_address_sync(
    address="0x06689f1bf69af5b8e94e5ab9778c885b37c593d1156234eb423967621f596e73",
    client=FullNodeClient(node_url="https://your.node.url"),
)
(value,) = contract.functions["get_balance"].call_sync()

For more examples click here.

Metadata

Release files for starknet-py-unbroken 0.24.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for starknet-py-unbroken 0.24.5
File Size Uploaded Provenance Actions
starknet_py_unbroken-0.24.5.tar.gz 92.5 kB Without provenance Details for starknet_py_unbroken-0.24.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for starknet-py-unbroken 0.24.5
File Interpreter ABI Platform Actions
starknet_py_unbroken-0.24.5-py3-none-any.whl Python 3 none any Details for starknet_py_unbroken-0.24.5-py3-none-any.whl

Total release size: 231.1 kB

Release files / starknet_py_unbroken-0.24.5.tar.gz

Download URL starknet_py_unbroken-0.24.5.tar.gz
Size 92.5 kB
Tags Source
SHA-256 checksum
How to use checksums
489cd0cb69f5d5880a33dad5c172739d2e0bc42662571ed9491e8bc780677ce4
BLAKE2b-256 checksum
How to use checksums
09948f27b6a91d53d959ea0e67a7fdac6c524dd237a13a3631a88e901711974a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.5 Linux/6.10.6-200.fc40.x86_64

Release files / starknet_py_unbroken-0.24.5-py3-none-any.whl

Download URL starknet_py_unbroken-0.24.5-py3-none-any.whl
Size 138.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e968170a45223894bec16001bae41cf39d4e3848d141632fa80153249ce6739
BLAKE2b-256 checksum
How to use checksums
3a364707c3684b91de130dc6914f2d68b20ea3e57d51d1c3a976bdb027910836
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.5 Linux/6.10.6-200.fc40.x86_64

Security for starknet-py-unbroken 0.24.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page