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.1.5a0.tar.gz
(72.1 kB
view hashes)
Built Distributions
Close
Hashes for starknet.py-0.1.5a0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2a9c1f3e280917dd4476afb4c830cc5f487ba45fb36154d65beb0ce579fbd3a |
|
MD5 | 97f89038d953851fd0a55b1caf488139 |
|
BLAKE2b-256 | ff154a5a200050c0efd9e1496f4d8008cead85ce0f39a287442180d874e68bdf |
Close
Hashes for starknet.py-0.1.5a0-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0333c6a1b4d0a54ba4813552362d6fb8bee7d52fea003bd281efdfe172f06c65 |
|
MD5 | dab7ae79621b154751eb83746b83f9e7 |
|
BLAKE2b-256 | afdf17c2034ddf05fdc26c9d9589eb2e8f0a27fa56a30a0dfc42891c035ba114 |
Close
Hashes for starknet.py-0.1.5a0-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ab2adc428c8d9521ab1cd4b6033a30737b1d5757923109e60aeaefd724f84c4 |
|
MD5 | c13956842d7ac50b90283c57767d5184 |
|
BLAKE2b-256 | aa9480aab486e1fc53345d35c02ba5262020739b87833a5db4aa0313890c62df |
Close
Hashes for starknet.py-0.1.5a0-cp39-cp39-musllinux_1_1_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff496ac6c0bcd188a64602cf74cfc5c5fadcdf565b5df53b1b1ea20ca34c94dc |
|
MD5 | 8c3892afd07f34ec214271195114bf08 |
|
BLAKE2b-256 | 4a51a18f57d5bebd4482cf7a89baca15cc3ad5444c2a3feacb964d8ec84a0818 |
Close
Hashes for starknet.py-0.1.5a0-cp39-cp39-musllinux_1_1_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12b9e924c58bedf1a1950433fc11bb2705d7199664f48a8bc242f563e0188c0f |
|
MD5 | 39e81e478a65050d163abface6790e65 |
|
BLAKE2b-256 | 7f22b2a815229479af77dce8650cb2dc1c38788df3f05b6abb2b282239701f01 |
Close
Hashes for starknet.py-0.1.5a0-cp39-cp39-musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a559ec0a1df08a01871c043aaeef70986a3ba7cd228e5db4f53da45872d1292f |
|
MD5 | 3fc8636251cde2e1c00020e469e4b7b6 |
|
BLAKE2b-256 | 7e75b71b58be780938c9e21f8ca3b7d0ea9966214f4813aff10b58a7fb1653ee |
Close
Hashes for starknet.py-0.1.5a0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3129e398ad6167f3d1e7dee99eb6f44c53190ab89fcf4f71d468d50c41a266ea |
|
MD5 | 3db8999e22048a422350b411c74bca5f |
|
BLAKE2b-256 | 494d2a5816ee5aaba2104fbef43f3fc9fefe17d64cbf4bcc2bdb7d5002b100b3 |
Close
Hashes for starknet.py-0.1.5a0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a59d44234f3bba457e6dc642b0c53830fc54b162b42ba7a026d26d2ad6eabf3e |
|
MD5 | 0321835603c18e845c02e8dd8249d96e |
|
BLAKE2b-256 | 5699a785f9a7179915461661194cbc3bbb1f91b40e5621e40a12a5d0991137f3 |
Close
Hashes for starknet.py-0.1.5a0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a308f7a5338be42387c1a587669222e3691386ed2e48d6af8f86c6dc45a2c815 |
|
MD5 | 914335aa3f4a5f78c2f49076a7492f83 |
|
BLAKE2b-256 | 2cae48d1656aa5b277568e0fde2589b22864ea99133ff4fa4fd417f97964803b |
Close
Hashes for starknet.py-0.1.5a0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22f5a7d7307c8e6dcdad42bd44fd3b3f7df960cc3d06693d19df42ea155916ec |
|
MD5 | 857fb4912f3250d173e564b420c00c47 |
|
BLAKE2b-256 | 691ac1b620fac35cbca80743e793f114c44c7c6ace8b7587978db90460f55f8f |
Close
Hashes for starknet.py-0.1.5a0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fa32b2f70ddb073d667fd8df6bce5a14835727d75218393880cd0cdb7660f88 |
|
MD5 | c8bc329e97844a08342ed91f59ce3f10 |
|
BLAKE2b-256 | 8ce4bd4aa24d70aadc273641c7ac7daf7c13c337bf9639b9a7d6ed19f42fc43b |
Close
Hashes for starknet.py-0.1.5a0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1aa196fd364934a00fc3fb1ccdf9ab02b5d5c70f7042330fea34f1b0d4e419f6 |
|
MD5 | c880caa46b6af743f04c69c68ad98aa5 |
|
BLAKE2b-256 | 6bd6f4704c05913fb56a3e72f5714e7ba33a708915f25869d75a4936db9d3758 |
Close
Hashes for starknet.py-0.1.5a0-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80eb9207b8cde5d22c7c4e98ee40622cb44f775ec3c8b1c8c5f558113c714fdb |
|
MD5 | 9037b766cc31a8777ca40c80e0bfdcad |
|
BLAKE2b-256 | 0e3f217ed6f0c60144ab792bac66408163cc25e793c2228c6345c611ac810a9a |
Close
Hashes for starknet.py-0.1.5a0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02da25d23adb479a5bb282c556e09366b1e9f9c8a05844473fcc1e74cb530a39 |
|
MD5 | a59bbad986343a1ed277178e6597b9ca |
|
BLAKE2b-256 | 71ea3c9b76fa2e76278e535c4685b09f07906e728947e2235684f6f7b41d3678 |
Close
Hashes for starknet.py-0.1.5a0-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1a9691e5e8e0dadb0f38579709ca761eab5efcc326659b1453a3423377adfab |
|
MD5 | 1ab455b5c25e44f5b1dd87c1cd369b63 |
|
BLAKE2b-256 | efc490c5112b9433afebf0e92a88fee5da475e2dc87f761d979388793cb28cb7 |
Close
Hashes for starknet.py-0.1.5a0-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02b0ba9f444747bdcef552d866df31636a7ac184b1bb98d604ae90f322c06943 |
|
MD5 | 9046e0e2346a1b8b90c3384b3663dda4 |
|
BLAKE2b-256 | 9d9cbba3b1d9dce3aa13f71d4b8c9c451233263bb6630a254e067f88d542214f |
Close
Hashes for starknet.py-0.1.5a0-cp38-cp38-musllinux_1_1_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27ce6c42d03e06269dd5abc2fb3e57213fb3f8a3c7738942e5e35567ae32a708 |
|
MD5 | 58cd63d81ec36d71108da4cd96fc70a5 |
|
BLAKE2b-256 | daf8ec413232e1b4faccd8200074a682aa08799de52752e36e4feaaaebdec71f |
Close
Hashes for starknet.py-0.1.5a0-cp38-cp38-musllinux_1_1_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcc11d4bf58b36d4a6cfc0497419f76db8184a51d06346e0b71eeffb1889c592 |
|
MD5 | a5a5d8d457cd581eea8020c495e75f99 |
|
BLAKE2b-256 | 97d0dc98d03246e430ccd480a7b3022c7677d794578ca5cc6f6f537e7ac4b006 |
Close
Hashes for starknet.py-0.1.5a0-cp38-cp38-musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54d89d965d40281e1ef47e8515719a2d8e2fe4baf2ab61a549174681af0be2d1 |
|
MD5 | 8adaf8ade5878ffa514cf505fb30cb66 |
|
BLAKE2b-256 | 156665e56e1d6a295216c33848b6b98b5b55a3a2492c57746a20e6635c8d3c59 |
Close
Hashes for starknet.py-0.1.5a0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e226ef5b626fca448093a8b5549db2d3d12bba1f041b5927cb03233dd07f92e9 |
|
MD5 | bc109b0af183a62a887e31e0d32bef03 |
|
BLAKE2b-256 | e069aba6cb82fe8249f281b2ea43f0aaa18559103f9a564ca4a3d7f3430a6897 |
Close
Hashes for starknet.py-0.1.5a0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16fe49033e77a4ac4f5270dd16c88c96f64cf832232435e63249d272f11e0040 |
|
MD5 | 8fe7a9fbabcacf2cff48bbcee14e8833 |
|
BLAKE2b-256 | 37e3dace9b780fb0b3fa0ef93b342a48401c4d6c6c01688d1e1790fdcfac0f01 |
Close
Hashes for starknet.py-0.1.5a0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f12984d91a730c80e74d416f31b863ace2bde0b3ce2f030cda8e21a6fba4b9fd |
|
MD5 | 20dae7e2a91b1daa618f67cf6d584398 |
|
BLAKE2b-256 | c2f109707d6f3c3d5689488c7a5aae47b91095306e0060f419074f6a8062f2a1 |
Close
Hashes for starknet.py-0.1.5a0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6088c30695c61f05deccc67d6b5781b341740532aaf0047fb8cb851eacb245a4 |
|
MD5 | 95d8ba21c452ef0d3bd65b2b3c7973e1 |
|
BLAKE2b-256 | 8539a1f3236f423a366203a5b2efcf921921392511d8697b4d720463fd7f8002 |
Close
Hashes for starknet.py-0.1.5a0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98af14138ecb0f8a798ec43379e6dc6350b7a81591051f25cf073a964a28e303 |
|
MD5 | 2f7c01bee3ad809c4f5d6ca37570690e |
|
BLAKE2b-256 | b0ab9bd953a443a495a7954f1045973781394f314fcfe7d326168fac6ecb344f |
Close
Hashes for starknet.py-0.1.5a0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dc011730e75bd94b2a7267f04e7bf37fa0946d677c4c024bd18246cebed23c3 |
|
MD5 | 15c169bf99afde56993b6537e51fa2a9 |
|
BLAKE2b-256 | 5776834b09405629f6a9ef8e4b612334d2643d504cfbb69b1239723531d21ea1 |
Close
Hashes for starknet.py-0.1.5a0-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d0c6bbe3034b9b3d03bbe7b5bf0221adc598d0459fd4f0f3bda90c7bf9a273f |
|
MD5 | ca2b5141659fd73b34d055ace65a0c88 |
|
BLAKE2b-256 | e309a3387a234671dbb0d907f581cd14bcdda6832a173e352af5cbd4cebe0179 |
Close
Hashes for starknet.py-0.1.5a0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2969c43b81bf739c239f836bfe9ceb39b5fe438263fb01746422fe68932f7fe9 |
|
MD5 | dd51a286bf365222a2ed874a153e4b2c |
|
BLAKE2b-256 | 0ca1078b4ce47ac1776e804763100cf6ebc44b0c54d4b4ec68b765454db969e0 |
Close
Hashes for starknet.py-0.1.5a0-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01087b48e801509986f770f743261c04c341ecec7010bbf89a6339e5a9163289 |
|
MD5 | 20d01afb56e5b235039531b2c8f55c9b |
|
BLAKE2b-256 | 0f0b1151da6e1932588f3d48be66a60c134d60eae1f71a16cfb2a3943bedbfa3 |
Close
Hashes for starknet.py-0.1.5a0-cp37-cp37m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e93a38037b0c715cc8b2751bbb9258d73c8a1b2b89fda973a1b1dd9c0785d49 |
|
MD5 | b8618990135c16b5c7399be5579ab1d2 |
|
BLAKE2b-256 | 53fe37411db82f38f9cdfb36fe7cf00ae663d6d5eaa8f6a0d382ccfbb25c9d4a |
Close
Hashes for starknet.py-0.1.5a0-cp37-cp37m-musllinux_1_1_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 354f54d715182de690cd28a66730b6ab7c825c7833ee309daa6f49f4727bd4b8 |
|
MD5 | a6e1ddb8d696dfdb69acef336c5078c3 |
|
BLAKE2b-256 | 51b42d65f7b84c1da359b7ccec6fbf4ef1c820fe1840c44435b253641357ea8f |
Close
Hashes for starknet.py-0.1.5a0-cp37-cp37m-musllinux_1_1_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81f94bd939fa9a65f9d022bd36e98cfb95e43bdb832ab4740e8489c3ff9a62c9 |
|
MD5 | 78032139d2e62ccb874a72ad4a214788 |
|
BLAKE2b-256 | 419f0d3eb805cf4a42168a21a01127d97121b6f196befe79a48ae45c4b9c115a |
Close
Hashes for starknet.py-0.1.5a0-cp37-cp37m-musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42629656d6c809d52528ffc5ce98b18a568586da145773081bd46a4ac1a690cd |
|
MD5 | c36343042c975fd1377faf5ba4ced8e0 |
|
BLAKE2b-256 | 7df614b0dd930d5873f9b4d9685e7d45db9232061ce6ec5253a586a0001061b2 |
Close
Hashes for starknet.py-0.1.5a0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 617f0307350a9c13a712178cfe53de0f4feaf728768ec2365a0206d75bd5b785 |
|
MD5 | 49f8a2cfa0a1aa9afcd9d81530bade34 |
|
BLAKE2b-256 | 828ce486b796c27ee3324c9dffa4db8a106ece519622f562587d96af8c2d4d0e |
Close
Hashes for starknet.py-0.1.5a0-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69755564c6a58b8ea27bba7725dc48f76f5707404011c9f08d2b05254fd9bbf7 |
|
MD5 | 70cc5a1553b84330c6b514f9e55b7dd4 |
|
BLAKE2b-256 | bbf4a52fb7cd620133929e505fdd0ab1e48af644775d2fe20a42ab5ee0ac86af |
Close
Hashes for starknet.py-0.1.5a0-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecc2bf0780116e982af8af3a6c81e33761259d3c2fdd49d52cdbf604c0bee01c |
|
MD5 | 34c47cb12ce78ca2dd838d704a867505 |
|
BLAKE2b-256 | fd5cc6f1d4631b85cdd862e7085a20e61266e6ba6363973c789836ef6a01f618 |
Close
Hashes for starknet.py-0.1.5a0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8405c1e8b326aa1dd8249c7f83b43b54f3a9e43aaecc151a8af405ff67629311 |
|
MD5 | 34af228babb4f34a21373863f44c5ccd |
|
BLAKE2b-256 | b0d348acb878f61bceb185d84d9402e9f601a7c8a415d2ede945febcaac80c1b |
Close
Hashes for starknet.py-0.1.5a0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc7c2b5ab465dd748fc32175bea8cf23e288dffcd586490c5ecd4c8e0ceabb42 |
|
MD5 | 19310e02a7eaae0aa0ea90a2e86a458f |
|
BLAKE2b-256 | 5656ff7074e1c65982ba3edefb72e87fb16130952183bd1168ade7e8f6f17445 |