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.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.

Metadata

Release files for brine-starknet-py 0.18.7

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

Source distribution (sdist)

Source distribution for brine-starknet-py 0.18.7
File Size Uploaded Provenance Actions
brine_starknet_py-0.18.7.tar.gz 78.1 kB Without provenance Details for brine_starknet_py-0.18.7.tar.gz

Built distribution (wheel)

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

Total release size: 198.9 kB

Release files / brine_starknet_py-0.18.7.tar.gz

Download URL brine_starknet_py-0.18.7.tar.gz
Size 78.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f817f408b4e87493d57af50925a447d86e28faf3beb9756b27865ae980cd4cff
BLAKE2b-256 checksum
How to use checksums
814af69c6601fc0ec325b3d6bab09fbb496f08c1ae1e53bcef52f5b25b906f97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.8.16 Linux/6.2.0-37-generic

Release files / brine_starknet_py-0.18.7-py3-none-any.whl

Download URL brine_starknet_py-0.18.7-py3-none-any.whl
Size 120.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e85e1ee3117bd3576c1dc26d1c1b1d57aa05843596ca9a4cd2319d6d2ad30ae9
BLAKE2b-256 checksum
How to use checksums
68ffd98db61ceaa8fb9a297b8f3881bf33ee7b69154bdef32a0af31acb5dfe81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.8.16 Linux/6.2.0-37-generic

Security for brine-starknet-py 0.18.7

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