Skip to main content

Nervos CKB Tools

Project description

CKB Python Toolkit

The library works only with Python 3.

Installation

pip install ckb-toolkit

Quick Start

Install in a virtualenv

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Example

from ckb.rpc import rpc
rpc.get_tip_block_number()

The example.py shows how to generate the CKB address and sign the transaction, and then send the transaction to the CKB node.

python3 example.py

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

ckb-toolkit-0.1.0.tar.gz (14.5 kB view hashes)

Uploaded Source

Built Distribution

ckb_toolkit-0.1.0-py3-none-any.whl (18.8 kB view hashes)

Uploaded Python 3

Supported by

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