Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Kaspa Python SDK

The Kaspa Python SDK provides bindings to Rust & Rusty-Kaspa source, allowing Python developers to interact with the Kaspa BlockDAG.

A native extension module, kaspa, is built from these bindings using PyO3 and Maturin.

[!IMPORTANT] This project has moved! Welcome to the new home of Kaspa Python SDK, which historically lived here.

Versions < 1.1.0 were built from the old repository.

Versions >= 1.1.0 are/will be built from this repository.

Features

This SDK provides features across the following categories:

  • RPC Client — RPC API for the Kaspa node using WebSockets.
  • Wallet SDK — Bindings for wallet-related primitives such as key management, derivation, and transactions.
  • Managed Wallet — A fully managed interface for the Rusty Kaspa Wallet API bundled into one Python class.
  • SilverScript — Experimental SilverScript contract compilation, locking scripts, and unlocking scripts.
  • ZK Scripts — Experimental builder that turns RISC Zero zero-knowledge proofs into Kaspa locking and unlocking scripts, verified on-chain.

This package strives to mirror the Kaspa WASM32 SDK from a feature and API perspective, while respecting Python conventions.

Documentation

Full documentation is available on the documentation site, including (but not limited to):

The documentation site is versioned:

  • dev refers to the latest in main branch
  • latest refers to the most recent production release
  • Specific version tags are available

Documentation is not available for versions prior to 1.1.0. However, the API is very close, if not the exact same, for those versions and 1.1.0.

Quick Install

The Kaspa Python SDK is available on PyPI (link). As such, it can be installed from PyPI via:

pip install kaspa

Security-critical applications should consider building and installing from source. Instructions can be found here on the documentation site.

Example

A very basic RPC example:

import asyncio
from kaspa import Resolver, RpcClient

async def main():
    # Connect to Public Node Network (PNN) with Resolver
    client = RpcClient(resolver=Resolver())
    await client.connect()

    # Execute RPC Call
    print(await client.get_block_dag_info())

if __name__ == "__main__":
    asyncio.run(main())

Additional detailed examples can be found in the following locations:

Core Concepts & Contributing

The Contributing Guide details various technical core concepts and information about this project.

License

This project is licensed under the ISC License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

kaspa-2.0.2rc1-cp314-cp314-win_amd64.whl (12.8 MB view details)

Uploaded CPython 3.14Windows x86-64

kaspa-2.0.2rc1-cp314-cp314-manylinux_2_28_x86_64.whl (13.4 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

kaspa-2.0.2rc1-cp314-cp314-manylinux_2_28_aarch64.whl (12.8 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

kaspa-2.0.2rc1-cp314-cp314-macosx_11_0_arm64.whl (10.7 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

kaspa-2.0.2rc1-cp314-cp314-macosx_10_12_x86_64.whl (10.9 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

kaspa-2.0.2rc1-cp313-cp313-win_amd64.whl (12.8 MB view details)

Uploaded CPython 3.13Windows x86-64

kaspa-2.0.2rc1-cp313-cp313-manylinux_2_28_x86_64.whl (13.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

kaspa-2.0.2rc1-cp313-cp313-manylinux_2_28_aarch64.whl (12.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

kaspa-2.0.2rc1-cp313-cp313-macosx_11_0_arm64.whl (10.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

kaspa-2.0.2rc1-cp313-cp313-macosx_10_12_x86_64.whl (10.9 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

kaspa-2.0.2rc1-cp312-cp312-win_amd64.whl (12.8 MB view details)

Uploaded CPython 3.12Windows x86-64

kaspa-2.0.2rc1-cp312-cp312-manylinux_2_28_x86_64.whl (13.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

kaspa-2.0.2rc1-cp312-cp312-manylinux_2_28_aarch64.whl (12.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

kaspa-2.0.2rc1-cp312-cp312-macosx_11_0_arm64.whl (10.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

kaspa-2.0.2rc1-cp312-cp312-macosx_10_12_x86_64.whl (10.9 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

kaspa-2.0.2rc1-cp311-cp311-win_amd64.whl (12.8 MB view details)

Uploaded CPython 3.11Windows x86-64

kaspa-2.0.2rc1-cp311-cp311-manylinux_2_28_x86_64.whl (13.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

kaspa-2.0.2rc1-cp311-cp311-manylinux_2_28_aarch64.whl (12.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

kaspa-2.0.2rc1-cp311-cp311-macosx_11_0_arm64.whl (10.7 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

kaspa-2.0.2rc1-cp311-cp311-macosx_10_12_x86_64.whl (10.9 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

kaspa-2.0.2rc1-cp310-cp310-win_amd64.whl (12.8 MB view details)

Uploaded CPython 3.10Windows x86-64

kaspa-2.0.2rc1-cp310-cp310-manylinux_2_28_x86_64.whl (13.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

kaspa-2.0.2rc1-cp310-cp310-manylinux_2_28_aarch64.whl (12.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

kaspa-2.0.2rc1-cp310-cp310-macosx_11_0_arm64.whl (10.7 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

kaspa-2.0.2rc1-cp310-cp310-macosx_10_12_x86_64.whl (10.9 MB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

File details

Details for the file kaspa-2.0.2rc1-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: kaspa-2.0.2rc1-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 12.8 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for kaspa-2.0.2rc1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 f4884b6146c4dd347ff0b9905971e94f04580b468cdd7aa34dcd143d16f1e333
MD5 ebd56326f9ce0cbc7bece175db3aeb5d
BLAKE2b-256 7e7ec5e94964a3ebddc978789d9233365534fb4ddb3953a730b581425d4035f2

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for kaspa-2.0.2rc1-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 95214642d372c0f097c13c98c26bf4a6e6f05b997dbbc58ebc43e13d22008956
MD5 ddcdbb94654ee8ad338bf1583a45255d
BLAKE2b-256 038674a6c55d1c1f6d1b3ba3d5767bc023bdc3cba71ce630dabe9c721ea28b7a

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp314-cp314-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for kaspa-2.0.2rc1-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 afc9bf51e1ef30eda00393bd4f1604981c7b036e901e8b43bcf7d6c1e5aba4fe
MD5 3fd3dde282383008b98fe15ddd2def46
BLAKE2b-256 4753a9c06a9be97eccdddc354b1f582aa7f8de2a256452aa8cabe9432f083492

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kaspa-2.0.2rc1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 66c09d71164972143ef51cbeff4587dea2c01642250d7dac5ccba08847c20660
MD5 f03b308ace0545d472ab34edebecc764
BLAKE2b-256 88c23790e372329aff4a761a5394674fc996043504aca0075d58f89804a43f30

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp314-cp314-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for kaspa-2.0.2rc1-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 aa2b42e4c85af8a14636526045b6efa45c43c13d735c605301b572b2e1197654
MD5 0b73ff19cce326a74d8068cc060ce372
BLAKE2b-256 dec53286a7dafffe2478cdfd4ab13aa38fa4b01b09830401ab262a5f7c641841

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: kaspa-2.0.2rc1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 12.8 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for kaspa-2.0.2rc1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 44838bb0904dd4151e4a971eb4b1e6184e1a09c7c7156fb29bf1b9a140f6da7d
MD5 53d436ffd0ee27168784255b21f528fd
BLAKE2b-256 103c6dcda502173ad8fb64de04e75feddb4788300d01552f06f4a678854ca660

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for kaspa-2.0.2rc1-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 318c6be680d5abc25a669d2dba9d4895d0a31b573725bb12597b7da988c24d93
MD5 b9581eae92f492ef406c1024970a3acc
BLAKE2b-256 8a85a21188d8fa4bf6617ae9e4d7741427f5f67e5f0863ce792c3ed5b5848042

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for kaspa-2.0.2rc1-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 98b16a141003792e5663ba097801e8a63441d70a37a02f0d57d739734b2b1339
MD5 b0b2241cf87e03638d8eb44ffaa08c10
BLAKE2b-256 2c2bac6731b8a7b377ce4757125ca5f25dced8badd9a3427f5356bad29d20c69

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kaspa-2.0.2rc1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 191d82f5f73b206ee0002c7d714cf1979a7d6e9cc7f30d82dde7a83d908ddb2c
MD5 c04e5e5e0ec52222149dd4a2ed752cd3
BLAKE2b-256 3c85468364ce948522edf1c6316bdbbf5258f3f222632e70bcd47508b2c1190b

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for kaspa-2.0.2rc1-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 708b04c91dcdb883f656919324f0569b046a071e736f8d73185a76b1529f461e
MD5 9881120d852b5c437685e4880261243d
BLAKE2b-256 fc8eddcd8d86b220076009a3e7fac3b0a968b5ea795e47bfce410a0c8920d6f4

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: kaspa-2.0.2rc1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 12.8 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for kaspa-2.0.2rc1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 eb2f2fe19e25fb8f7ec0092b0a75b8e0115509e45ba2c2336ae1e05d298960ce
MD5 8846dd5974cb0bf12f6193dd95c99303
BLAKE2b-256 b09f6ce3ad27d0f0b60f18c6b7f82419e8f9a37cefb0a349e5e56106c31623f1

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for kaspa-2.0.2rc1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 138d4efc01dcc530873604e3d688f367c2acec970f445aaae606842d83868036
MD5 64a8ad95e092c7d218b6b7c97537f971
BLAKE2b-256 ce2c8dc334f60b6e853dff5b88f87bb1b68357bc8c687ea4d704a75f5110fcb9

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for kaspa-2.0.2rc1-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 59a94ce3527a6ef41df2b618525fe837b539a8b1bcfa5e52db624c869a394fb0
MD5 0261cd507e2292d0f586bb3b45b77e08
BLAKE2b-256 11adb66454521d6149dd471c3a20cc9bd68c129fca515d254cdad71a5dc3efa1

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kaspa-2.0.2rc1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 af7821a895636c006e7da6cb6b4c24336a66ce13b26fe7effec904f77c813fb4
MD5 6a26bf19c2f24daa233d24bb5065eefb
BLAKE2b-256 97912eb3b4d02f3d32dfb20a9532253a4974ab46e0fb34bc39e96bea77e23935

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for kaspa-2.0.2rc1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ce2c39888773fae1d491e1e878bcba5e38dac239c07591bdf041df63b65f6300
MD5 3a8c389c6c2009a1f31c494028bc4bd1
BLAKE2b-256 2d66feded9696f6cf5f92b629ec6b2854a05610502e8472b9ef2ed30bcc45462

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: kaspa-2.0.2rc1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 12.8 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for kaspa-2.0.2rc1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3ec8f8332c8350efa013811a340d01434d1445bf74d3468e8f5622118627e87e
MD5 f69b81d8bf0df50186a928be48e97c24
BLAKE2b-256 0ee913915e9efb233d8d620da34426c490143bb7790f865c1f3366c71bedd483

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for kaspa-2.0.2rc1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 98abb788fe9b1eaae03347ba7f9c483c907d64872798091f43984bd2bda06140
MD5 c022e3ebd1773fc5b8c12053509c32b5
BLAKE2b-256 70358d3a6e9b0f50009a7b474c771e0c1a8e5e15ebda60ed03d68e6eeee92629

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for kaspa-2.0.2rc1-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c8a9bedbc1ec858e467ff60c1490c7c1dbf36c94f6971a0136e048e110da5ea9
MD5 ac0816242cced17cc56e758ebc61772c
BLAKE2b-256 46f904f72d942c17dd897fcd8c5c3516c91e36abed082b221277a3280293f049

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kaspa-2.0.2rc1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7c2d2e7fcf111ca8b9090323d6d1f0b21264f54fd862167c9da87b7463e8015
MD5 d7b148a8917f0de5a949c2518276ec8a
BLAKE2b-256 36e73239176f36898bc26c38010ac5265ed456140d7fc87bc63c06df05f70ef5

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for kaspa-2.0.2rc1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 af4e5e97b181861c304f9c045d49b62321e3ce705433c73cf96574e40f0dc134
MD5 eb77cc2603353f77622340444d4239d9
BLAKE2b-256 088c7182303845beca4aaa8c4d274216f9fce87cd81d42678a09511574d62ff0

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: kaspa-2.0.2rc1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 12.8 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for kaspa-2.0.2rc1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ab0a8aba24759c48714ab65fd77156329b0a5dc608deb12f8f4855abaa5ebce3
MD5 08d99fe7b5b9b3e2bbcd8df232bfed4b
BLAKE2b-256 4b3bf74a9754c38abcd8a9a6dac9f5d42f7ec6650e0d1fbac55696360c189b0d

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for kaspa-2.0.2rc1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dcb4d5ab3bcb1536872ca6332a5209467817addfee2c53cef1169a811cd356e4
MD5 aa7443c2c8f31540fce2e62c4973c887
BLAKE2b-256 efa700d972e6fd0a1937d9268af9c21a36412c1e9e883c6c2d414cbc8b95507b

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for kaspa-2.0.2rc1-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6bca31302cee15d0af1368bca2645c1dee7e9d4900f7104ddc02fbd1d6110624
MD5 e8fc904a51a6f98a34573cca28032c3d
BLAKE2b-256 6646ef91b09a4e6feeb325f2ed40efb4de35a38391ba0b939bc78dee36137b92

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kaspa-2.0.2rc1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e07246126d4bbb5888871611c039a258ad5509b6cb7630e3f6104fa158ce4d3
MD5 73caa3403cabe0f8885252bd2b158304
BLAKE2b-256 f78a4c379d02e23270178a0b83ed8b1161a6e7fc78bec814374a8b6236d7473d

See more details on using hashes here.

File details

Details for the file kaspa-2.0.2rc1-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for kaspa-2.0.2rc1-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 12e0782ca930bff6d9c7ffcd0a6cf87890ac2149f854684f58f1af81dd8897b0
MD5 5fd34e8edf145f9c19ec5c1398635e41
BLAKE2b-256 731bbe36208e942a834f156690c5a7a627fcb3cb84d92bed2a6621622927eccd

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0.2rc1 This release

25 files

2.0.1

25 files

2.0.0

25 files

1.1.0

25 files

1.0.1.post2

30 files

1.0.1.post1

16 files

1.0.1

3 files

1.0.0

10 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page