Skip to main content

Python Rollup Development Kit for the QoreChain network.

Project description

qorechain-rdk (Python)

Python Rollup Development Kit for the QoreChain network.

Status: Available. This package mirrors the TypeScript RDK (@qorechain/rdk) with idiomatic, type-hinted, snake_case Python — typed rollup configuration with the compatibility matrix enforced, preset profiles, the rollup and settlement-batch lifecycles, native data availability, transaction signing and broadcast, and the read clients.

Surface (mirrors the TypeScript RDK modules):

  • Typed rollup configuration and builder, with the settlement / sequencer / proof / DA / gas / VM compatibility matrix validated client-side.
  • The five preset profiles: defi, gaming, nft, enterprise, custom.
  • Exact denom conversion and creation-cost economics (integer math, no float).
  • Binary-Merkle withdrawal-proof assembly for the bridge.
  • Portable rollup manifests (save / share / reload).
  • Account derivation from a BIP-39 mnemonic (BIP-44 m/44'/118'/0'/0/0, secp256k1, bech32 qor) and a SIGN_MODE_DIRECT signer.
  • Hand-encoded protobuf codecs for the eight rdk messages, a full transaction builder, and broadcast via the REST /cosmos/tx/v1beta1/txs endpoint.
  • Read clients: REST (LCD), the qor_ JSON-RPC namespace, typed views, and the RdkClient facade — plus preflight ("doctor"), rollup health, event decoding, and a faucet helper. Live broadcast requires a reachable node endpoint; the HTTP transport is injectable for testing.

What's new in 0.4.0

  • QCAI Rollup Copilotget_rollup_advice aggregates a live fee estimate, network recommendations, fraud investigations, RL-agent status, and plain-language suggestions for a rollup (best-effort; unreachable advisory services degrade to warnings).
  • Quantum-safe settlement receiptsbuild_settlement_receipt / verify_settlement_receipt: a portable receipt proving a settlement batch was anchored to the Main Chain under an ML-DSA-87 (Dilithium-5, FIPS-204) signature, verifiable fully offline. The ML-DSA-87 verification uses the qorechain-pqc library.
pip install qorechain-rdk

Install as qorechain-rdk; import as qorrdk.

from qorrdk import presets, create_rdk_client, signer_from_env

# Build and validate a rollup configuration.
config = presets.defi("my-rollup").set(stake_amount_uqor="10000000000").build()

# Connect, sign, and broadcast (needs a reachable node endpoint).
client = create_rdk_client(network="testnet")
signer = signer_from_env()  # QORE_OPERATOR_PRIVATE_KEY_HEX or QORE_MNEMONIC
if signer is not None:
    tx = client.connect_tx(signer)
    tx.create_rollup(rollup_id="my-rollup", profile="defi", vm_type="evm",
                     stake_amount="10000000000")

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

qorechain_rdk-0.4.0.tar.gz (59.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qorechain_rdk-0.4.0-py3-none-any.whl (62.0 kB view details)

Uploaded Python 3

File details

Details for the file qorechain_rdk-0.4.0.tar.gz.

File metadata

  • Download URL: qorechain_rdk-0.4.0.tar.gz
  • Upload date:
  • Size: 59.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for qorechain_rdk-0.4.0.tar.gz
Algorithm Hash digest
SHA256 65b38b5b6f9ce2e03931ded529895c6fe8146df0f8f296578c2126333e870157
MD5 36f6e33fe70d870b8ab5e53f4c61bc71
BLAKE2b-256 b55e7171f46a9160ee30622c90ac3fd06a88043ac0328abd89ab0b8193be9354

See more details on using hashes here.

File details

Details for the file qorechain_rdk-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: qorechain_rdk-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 62.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for qorechain_rdk-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1045002217a3730dae8398c140cfd49ce19f91557a6edd84aab52c89a329dd81
MD5 b9057db697ca22ff19d44836d34d3bee
BLAKE2b-256 8f0888814f3cb4215ea85139328e0130d7fc9ae774fb4d5c870302c392b77e7d

See more details on using hashes here.

Supported by

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