{"id":26828,"library":"chia-base","title":"chia-base","description":"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.","status":"active","version":"0.1.7","language":"python","source_language":"en","source_url":"https://github.com/richardkiss/chia_base.git","tags":["chia","blockchain","types","utilities"],"install":[{"cmd":"pip install chia-base","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"no common mistake","symbol":"Coin","correct":"from chia_base import Coin"},{"note":"no common mistake","symbol":"Program","correct":"from chia_base import Program"},{"note":"no common mistake","symbol":"bytes32","correct":"from chia_base import bytes32"},{"note":"no common mistake","symbol":"uint64","correct":"from chia_base import uint64"}],"quickstart":{"code":"from chia_base import Coin, bytes32, uint64\n\ncoin = Coin(\n    parent_coin_info=bytes32(b'\\x00'*32),\n    puzzle_hash=bytes32(b'\\x01'*32),\n    amount=uint64(1000)\n)\nprint(coin)","lang":"python","description":"Basic usage: create a Coin object with required fields."},"warnings":[{"fix":"Use `pip install chia-base==0.1.7`","message":"The library is in early development (v0.1.7). APIs may change without notice. Pin your dependency to a specific version.","severity":"gotcha","affected_versions":"<1.0.0"},{"fix":"Wrap values with the appropriate type constructor: bytes32(b'...') or uint64(1000)","message":"Type 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.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Verify the available exports by checking the package's __init__.py. Use `from chia_base import Coin` if available.","cause":"Incorrect import path. Some submodules may have different structure.","error":"ImportError: cannot import name 'Coin' from 'chia_base'"},{"fix":"Wrap arguments with the appropriate type, e.g., bytes32(your_bytes)","cause":"Passing raw bytes/str instead of chia_base custom types.","error":"AttributeError: 'bytes' object has no attribute 'hex' (or similar)"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}