Skip to main content

Python library for interacting with a CSPR node.

Project description

Casper Python SDK

Python 3.9+ library for interacting with a CSPR node.

What is casper-client-py ?

The python client is published as pycspr: PYthon CaSPeR. It's goal is to streamline client side experience of interacting with a casper node.

How To: Install ?

pip install pycspr

How To: Query a node ?

See here.

How To: Transfer funds between 2 accounts ?

See here.

How To: Delegate funds to a validator ?

See here.

How To: Undelegate funds from a validator ?

See here.

How To: Stake funds as a validator ?

See here.

How To: Unstake funds as a validator ?

See here.

How To: Install a smart contract ?

See here.

How To: Invoke a smart contract ?

See here.

How To: Query a smart contract ?

See here.

How To: Speculatively execute a deploy ?

See here.

How To: Hash data ?

See here.

How To: Create Key Pairs ?

See here.

How To: Apply a checksum ?

See here.

How To: Await Events ?

See here.

How To: Consume Events ?

See here.

How To: Run unit tests against an CCTL network ?

cd YOUR_WORKING_DIRECTORY
pipenv shell
pytest ./tests

Project details


Download files

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

Source Distribution

pycspr-0.13.0.tar.gz (41.7 kB view details)

Uploaded Source

Built Distribution

pycspr-0.13.0-py3-none-any.whl (61.6 kB view details)

Uploaded Python 3

File details

Details for the file pycspr-0.13.0.tar.gz.

File metadata

  • Download URL: pycspr-0.13.0.tar.gz
  • Upload date:
  • Size: 41.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.1.0

File hashes

Hashes for pycspr-0.13.0.tar.gz
Algorithm Hash digest
SHA256 178a02f39e05e875acfcb08a5e96a8bc4cb36f813cf5779c5625b28f105149c8
MD5 85df3f064a53ff9eec8e66250f719d69
BLAKE2b-256 0d2b68c237544c6a039df7dc1501cd3648df7a1118c8cb900013315cce4c827f

See more details on using hashes here.

File details

Details for the file pycspr-0.13.0-py3-none-any.whl.

File metadata

  • Download URL: pycspr-0.13.0-py3-none-any.whl
  • Upload date:
  • Size: 61.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.1.0

File hashes

Hashes for pycspr-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd284f451f2c14326f8ac128d2482a8cf05e9527f10f0f137761f749c9474bed
MD5 135de73b3570b0adb53b12b8ebba1d7b
BLAKE2b-256 4b845fa704030ec05ad57cbdbb9da36c2dfd7b226618352aad9b7d113d57a7c4

See more details on using hashes here.

Supported by

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