A python SDK for StarkNet
Project description
StarkNet SDK for Python
📘 Documentation
Installation
To install this package run
pip install starknet.py
or using Poetry:
poetry add starknet.py
▶️ Example usage
Asynchronous API
This is the recommended way of using the SDK.
from starknet_py.contract import Contract
from starknet_py.net.client import Client
key = 1234
contract = await Contract.from_address("0x01336fa7c870a7403aced14dda865b75f29113230ed84e3a661f7af70fe83e7b", Client("testnet"))
invocation = await contract.functions["set_value"].invoke(key, 7)
await invocation.wait_for_acceptance()
(saved,) = await contract.functions["get_value"].call(key) # (7)
Synchronous API
You can access synchronous world with _sync
postfix.
from starknet_py.contract import Contract
from starknet_py.net.client import Client
key = 1234
contract = Contract.from_address_sync("0x01336fa7c870a7403aced14dda865b75f29113230ed84e3a661f7af70fe83e7b", Client("testnet"))
invocation = contract.functions["set_value"].invoke_sync(key, 7)
invocation.wait_for_acceptance_sync()
(saved,) = contract.functions["get_value"].call_sync(key) # 7
See more here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
starknet.py-0.2.0a0.tar.gz
(77.6 kB
view hashes)
Built Distributions
Close
Hashes for starknet.py-0.2.0a0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05b6186fa2e4113bd0af3f5aadc2212571f14218340ed1653693710ddab87459 |
|
MD5 | 1a5fce61b291e2425609559b3e3e52f7 |
|
BLAKE2b-256 | 9c1da6bb8f72567ff13d6da66654f810e99ef5b71370a6b07d6ed0dbe9c3a940 |
Close
Hashes for starknet.py-0.2.0a0-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7118c291454d0203db6df3db1ce1a1006d14124eca60f1cd9b8dff07fd7ebf00 |
|
MD5 | 085ee35db2f7ff3de663f83aef9506d5 |
|
BLAKE2b-256 | fa6ecb64e2707f15bfd66786fa2aa91953ace6b472a1611956513b6740809a59 |
Close
Hashes for starknet.py-0.2.0a0-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e0ec7a2dfe205c57f663e0d8189d5b7cd72ed274481dd76c351d941d33b12a5 |
|
MD5 | 64a7089493ca55e7e0bb355e3341e283 |
|
BLAKE2b-256 | 2cfc3e96336a628a63e0575c56a09dec5c09134afe9418fa34c95b9b881860b1 |
Close
Hashes for starknet.py-0.2.0a0-cp39-cp39-musllinux_1_1_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa17e010f068854fd15b3d887a3578712d142046c12704db7d50fca725c360e9 |
|
MD5 | 84d56ce9f6ebd220b3b0114e7ced5047 |
|
BLAKE2b-256 | a74140b43cc07e7c1c16bc03e9962b0a51b20397d879ce42cf52183afb9976ad |
Close
Hashes for starknet.py-0.2.0a0-cp39-cp39-musllinux_1_1_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4492c94a59457b5b31423955ee208460c69ddc66123f88ec60c5b8a4fd694c7b |
|
MD5 | ab05de31c1201f432e82064e960011a8 |
|
BLAKE2b-256 | 0a9d9109161c718fe54cfaced6250fe3db66d1ffbef8918497c666a9f38ba7ac |
Close
Hashes for starknet.py-0.2.0a0-cp39-cp39-musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82600951c8c4f6945e95a8c0e3316640a1366e63ab623d53e0aa28950630f3a8 |
|
MD5 | cfd004245d8325bc573da81a6784b930 |
|
BLAKE2b-256 | b9de091096352c93f9f23ba34213bf10bed576ccddebbafe9977d24709e93922 |
Close
Hashes for starknet.py-0.2.0a0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | babed1a463cbef6286cc96444aae67eadb247b20a0d5d63ba1a91d48e8a9f60c |
|
MD5 | b37ee17cc69d0f3d593d0d6b1db443bf |
|
BLAKE2b-256 | 8e297dbc3b72dd8ada51fe9f521c4304899b59b314b47c1849ebdf1fdf9d3d56 |
Close
Hashes for starknet.py-0.2.0a0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f492a80b6e77bb6c26f011138ae71eda0f49c1f825d1512d284870290a46add9 |
|
MD5 | 9c044ec2b4ce0b96994e1c46e9f8f1d8 |
|
BLAKE2b-256 | cd698a53f69c9cb91202ccfcf0b05d4429ee4625ee0b22f0a9ae94327f4d30ae |
Close
Hashes for starknet.py-0.2.0a0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6a5f6a7db822d9339a729d1830ff3ff970b401f89d098026e7e01042fe4265c |
|
MD5 | a0df95899c3fb53611e42bdaf9a43ed4 |
|
BLAKE2b-256 | 6772a0cf19bcc44bd37af1abca7292e8e1dacd5bb40afcf5349c87210a5578a1 |
Close
Hashes for starknet.py-0.2.0a0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14cbe706c9d9d3c66d2b93d3aaf1d59ba50ccacfbc03af46ad20dc8856e3f2ae |
|
MD5 | bcd3a24fcebd3bacdf7061e15de9ac4e |
|
BLAKE2b-256 | 07d0161859655f248ab3ecc8b506fa30c049ed44f4e704075a38853030dddd9a |
Close
Hashes for starknet.py-0.2.0a0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e2a01da2e37f7d0b733c97c0864be460b5d2d89f86a59260506502e81f5f3b2 |
|
MD5 | f423a193798dcb281405297c1595c5d6 |
|
BLAKE2b-256 | f2db4013f14a190b2c9431e39d273e7a43614eecf95435ea7a61b333a782e41f |
Close
Hashes for starknet.py-0.2.0a0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f5de8a32ddc6e5064a361f2f1ed81e1a7ab7df1c6ef8a72b877c62296e588f3 |
|
MD5 | 87a1f436fe7ca9c7185a349e8bf2b47e |
|
BLAKE2b-256 | 3f9d78aa4206bae5e1fc0c0a83182e9565a4f747bbe82d44dc1f64dd94da1329 |
Close
Hashes for starknet.py-0.2.0a0-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4c93c3617d0ddcbc4115ab3cb456d9f3107bea8f3605ac77a94b6152a220afd |
|
MD5 | 72823baa3303264baca96aa8be9fe8dd |
|
BLAKE2b-256 | eec3ce5d4ed1f9192ede9142d9dea8d29073f6cd3d5816844b000fec8972d1b5 |
Close
Hashes for starknet.py-0.2.0a0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1a7ac46828c933df6517fc4c3eb4a82334d03c704375572f13bda82bc9742c4 |
|
MD5 | 0a3a21d420a3c093ae428109006815ba |
|
BLAKE2b-256 | cf410ee4f7dc0cf49d5c3c354f7ea8fee9088c91bf5524b6be7507da249108e3 |
Close
Hashes for starknet.py-0.2.0a0-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8178113d7962ad69b6d681284de35460dca5dbad22b0874dd662b6e74becb038 |
|
MD5 | 9e96cd58f9856c7647cc89e77c66b199 |
|
BLAKE2b-256 | c52a74acc97fe306436fbd6415176018c4dde8990856ff6d15602db0bf00e17c |
Close
Hashes for starknet.py-0.2.0a0-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53892b151cce3af32e68d7a5c180dbf3459fcd2ad44340b4381b745fc0cf36e1 |
|
MD5 | f7a3003eda70247ff33ebdcd93014ddf |
|
BLAKE2b-256 | 469c7f5d474a19477662ac91f9d38ab95a749b6a2e246b43c64ddb08d0c7d086 |
Close
Hashes for starknet.py-0.2.0a0-cp38-cp38-musllinux_1_1_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc17fce15fd7273b2b703a8282fcc7decab484a6841cf66aa199038569bf7b6a |
|
MD5 | d03da57e7c7d0cb6e7f512622686a32b |
|
BLAKE2b-256 | fa820e45d91edba954a002e2e817b0ec1eabd58fe295271e968c058d4be70100 |
Close
Hashes for starknet.py-0.2.0a0-cp38-cp38-musllinux_1_1_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcbdd957886b7a3737e0ddcc3136b0145c1f0e0112884ab17ebdd5ef286e36b7 |
|
MD5 | 0e1c54d8aab8ff9696ef0d9bd722bd4e |
|
BLAKE2b-256 | 5d524a3d17fe48be36d90974c0180028dbcb056c36571deae1c187854b2b1505 |
Close
Hashes for starknet.py-0.2.0a0-cp38-cp38-musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cce3c428796d4f65ca62eed3c35f0c1638f3d5b3ff1103dc1d5e1a04cba15475 |
|
MD5 | 073a5d2320a1b8a5ddd2fc0999bc392b |
|
BLAKE2b-256 | 11d1cd27421fa906cf0a0be9a266e576ad932596804f00ecad0f969949bfa5b8 |
Close
Hashes for starknet.py-0.2.0a0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9471d820f8fc2bc2351fdbe293961cc35eee009916bcfcd809c30a05ac6cd104 |
|
MD5 | 4ca220876cff1387d3413a55dfcb06c0 |
|
BLAKE2b-256 | 5d6321732394cb1d2ea13558440349f1a36983f6f658a07db52e3b79c19970df |
Close
Hashes for starknet.py-0.2.0a0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63254baeda2df1abc477dd56aec7b1c70abba5cc3b96761a14b982756f801c36 |
|
MD5 | baf981b799d3847ce8c11aedf22cdd0a |
|
BLAKE2b-256 | 829f561ff74ac4da4851e112c8900fbc38c360703d2cd92482a24a4b3eb35338 |
Close
Hashes for starknet.py-0.2.0a0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b89477104f72baae31dea9557da6be47facc30997bf87336eaa14c916e19171 |
|
MD5 | 61640532f569df54fbe81f956531a51b |
|
BLAKE2b-256 | 5c30fdeecacc8ca1c38669641ec72ecf2437bbb50bfcfc556e88a63a813ad694 |
Close
Hashes for starknet.py-0.2.0a0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6094fc441b734b7d5d3c70681bc7d739984467794504ebef5503778e7c88eb26 |
|
MD5 | 737757b77b91f1da4c55753d94798961 |
|
BLAKE2b-256 | 4e7815193b5fdb91a66433b9beb9e6c92a36ddf5cdc69b9e96e489669867aff3 |
Close
Hashes for starknet.py-0.2.0a0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d00979969ec5a3f0d6876e85a61bf4c22c68f244c808c1e139344ef895b1148c |
|
MD5 | e3798d4c5dc88574bfb34c99fadf6bb5 |
|
BLAKE2b-256 | 4e6680e27b5724b813f52b28dcdb717cfe325f451638cb584345789ec8157db3 |
Close
Hashes for starknet.py-0.2.0a0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77e043912cd813230406f86b2b4aacdb31e39610432427829dd0aff9c7d272ae |
|
MD5 | 7d84359410d3ec9163cece901161f5c7 |
|
BLAKE2b-256 | fa338d4bf45b080aac2aeded4719f7b5118363e72512cd4951af26334d9d6281 |
Close
Hashes for starknet.py-0.2.0a0-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52c5a808ac8fa3e6d7c6d12887a8bd893dd3cb129e6946c8b0d48668d7765fd4 |
|
MD5 | 43264437af474b1a3b65aaccf194850d |
|
BLAKE2b-256 | 3d83712a4653bea6fc5140a4644b60e2abef18d12fb2c608c1b74f6c00949ceb |
Close
Hashes for starknet.py-0.2.0a0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74ec371223be2664ca27b4776b841f67b061b9f4b0e84d21cf1e3433e2d50833 |
|
MD5 | 1e21671b9af860e105280c3d7922527e |
|
BLAKE2b-256 | c184885cd7841de7cdb2d841b464147b62349c166548f116f6b514c9fe5a4db1 |
Close
Hashes for starknet.py-0.2.0a0-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d44ed5bb7121c3595a97b5c0eae440c5d9694aa3d67705b89378d0f8e76bd059 |
|
MD5 | 082ed7bd49ae646da2732e1bea850453 |
|
BLAKE2b-256 | 6d8203af2c9928d7c959e1956c62bd00d15eeaa066e7cf8eb02dcdb12c40b070 |
Close
Hashes for starknet.py-0.2.0a0-cp37-cp37m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d681f6e948d6cdb382f8621cdd27a0a3f26f87f1245a7637d752fbbe7f264b1 |
|
MD5 | 97417506e51277ef7aae0afcff71c692 |
|
BLAKE2b-256 | d1dff194ba2e2aa9f8e1fc1fe832f9d2bc4cdbbb76daa4fee300b6deb8bb7daf |
Close
Hashes for starknet.py-0.2.0a0-cp37-cp37m-musllinux_1_1_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48e1b6b0eec8df33872267d0c6094f695cdfb4344c5c78f4e4a88a2e0eb20b53 |
|
MD5 | 03ee05877864602adb0bf3175f21b4cc |
|
BLAKE2b-256 | 03f3ceeafc04d3da0b3759d0ba2f9211c8d48a5b320174890a531bc2315f117d |
Close
Hashes for starknet.py-0.2.0a0-cp37-cp37m-musllinux_1_1_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b429696484206917ee6a1d4a6c609dafe7590a26e22845d4a11e8a8ae3b7182b |
|
MD5 | b865f2eaa7d409147396aaf9af3423ba |
|
BLAKE2b-256 | ed5bfb45be28a17d669285caaf4386a3288e6cbcc4c92cdf39ce22854980461c |
Close
Hashes for starknet.py-0.2.0a0-cp37-cp37m-musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39c752d7ace783b6c965f15f6ef756ccf616b88daefc5dde93619ceebc6bc29a |
|
MD5 | 1d2d73ffb68b3f6a93c935a9caf2792e |
|
BLAKE2b-256 | 5918d41c0db169ca4c3017807929811c2d343505e8a30c314255551f7e0be0de |
Close
Hashes for starknet.py-0.2.0a0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4efc42bd6b9f941bee9d46b52a4865572a88e6dee112ec3d0cbfb0b04038a347 |
|
MD5 | 5d0cfa1e419f5aab5ddab00daad7b606 |
|
BLAKE2b-256 | c072a6d658f5def7ef131b9fe5b90db3660f8098b3329172ed6763e945f70587 |
Close
Hashes for starknet.py-0.2.0a0-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16012a8fc2fc063c331bc040a31ec10d0019927bff27f812cb28335566453e76 |
|
MD5 | d2e1c99914d4519e1a58df497465f318 |
|
BLAKE2b-256 | d28741c9f38a1e7ee690c2df1001b38cb050ff9e4f5a59639b8ebfc843c91217 |
Close
Hashes for starknet.py-0.2.0a0-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d18b24425f08b79fdc48b364efa64bdde868a3f936efcb8ee565ace1726b4afa |
|
MD5 | 50bb802e0ff0be7b9580dd58f39b4b5b |
|
BLAKE2b-256 | becef8cdbc3a4d273e3275e063a2c89dbec253e970286368cfa5e2645138eb1a |
Close
Hashes for starknet.py-0.2.0a0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da58548b4a37891a35aaad446b235e5245c14887247ed6de8f296c32cdcba7fe |
|
MD5 | f978de629cdc01a9ee95a36245a3ae1a |
|
BLAKE2b-256 | 3166415d51c4a5b96163cb91c16be387c326f6408d43c8f17ad56e23c3a36a7a |
Close
Hashes for starknet.py-0.2.0a0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6db34cd17724c23a135e5a070c0c1cef800a579040a12f193dddd0cdb9b9dd2b |
|
MD5 | aa867fa4d21eccc34cae97fbfb5d1f64 |
|
BLAKE2b-256 | e5c7ffc90e33b8be9a63e9e9d1a4d9f1333a517e586c3be01e053be57ecebc86 |