Registry / chia-base

chia-base

JSON →
library0.1.7pypypiunverified

Common types and simple utilities used throughout the Chia blockchain codebase. Version 0.1.7 is the latest release. The project appears to be in early development with no frequent release cadence.

pip install chia-base
INSTALL
IMPORT
SIG · CHIA-BASE
C
chia-base
pythonv0.1.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Coin
from chia_base import Coin
from chia-base import Coin

Basic usage: create a Coin object with required fields.

from chia_base import Coin, bytes32, uint64 coin = Coin( parent_coin_info=bytes32(b'\x00'*32), puzzle_hash=bytes32(b'\x01'*32), amount=uint64(1000) ) print(coin)
Debug
Known issues
gotchaThe library is in early development (v0.1.7). APIs may change without notice. Pin your dependency to a specific version.
fix
Use `pip install chia-base==0.1.7`
affects: <1.0.0
gotchaType checking with custom types like bytes32 and uint64 may require explicit conversion from standard Python types. Passing raw bytes or ints might not work directly.
fix
Wrap values with the appropriate type constructor: bytes32(b'...') or uint64(1000)
affects: all
Upgrade
Version history
0.1.7latest on PyPI · released Mar 28, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
chia-base — pip install chia-base · libregistry