Skip to main content

Python library for interacting with a CSPR node.

Project description

Casper Python SDK

Python 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.2.tar.gz (41.9 kB view details)

Uploaded Source

Built Distribution

pycspr-0.13.2-py3-none-any.whl (61.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycspr-0.13.2.tar.gz
  • Upload date:
  • Size: 41.9 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.2.tar.gz
Algorithm Hash digest
SHA256 520c7dc156a04894d19cafdca0cb060fac1476d7416d7020f4ee6e1cce2a6b1a
MD5 b3c7dc49afa186572d5887ee215629b4
BLAKE2b-256 d1814747597a70e97bad66438c76f42d9774890d7068c89090f341e3a2a69675

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycspr-0.13.2-py3-none-any.whl
  • Upload date:
  • Size: 61.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f711993b7d9d9fd20a32b9b8baa59ad486ead635e63dc18f2e6abb52548724fb
MD5 d96332919a03f9da3f69c1308bd5ca96
BLAKE2b-256 2ab607d7dcd2d5efe3a9cd4b00464bec93129e83ea8d4b31a741dd7d8a385503

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