Skip to main content

Official Python SDK for the Walley wallet API on Canton Network

Project description

walley-sdk

Official Python SDK for Walley — programmatic self-custody of CIP-56 tokens on Canton Network. Your process holds the wallet's key, signs locally, and submits transactions; the API only ever sees public keys and signatures.

pip install walley-sdk
from walley import Walley

w = Walley(
    key_file="~/.config/walley/alice.key",   # PEM or 24-word mnemonic file
    party_hint="walley-alice",
)

for balance in w.balances:
    print(balance.instrument_id, balance.total_balance)

result = w.transactions.execute(commands)   # your dapp's own ledger commands
result = w.transfers.send(receiver="walley-bob::1220...", amount="5")
print(result.update_id, result.fee)

Transaction fees are drawn from a prepaid traffic balance. Pre-buy traffic, then send freely; each fee is reserved from the balance and settled from the completion — no per-transaction payment step:

w.traffic.purchase("10")               # buy 10 CC of traffic
print(w.traffic.balance().available)   # spendable balance (may go negative once)

If the balance goes negative the next send raises InsufficientTrafficError — call w.traffic.purchase(amount) to continue.

Full documentation: docs.walley.cc/python-sdk — quickstart, keys & authentication, transactions & the prepaid traffic model, wallet operations, and ledger reads.

Development

cd walley-sdk
pip install -e '.[dev]'
pytest

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

walley_sdk-0.4.0.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

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

walley_sdk-0.4.0-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for walley_sdk-0.4.0.tar.gz
Algorithm Hash digest
SHA256 6b5545aaad982047052df075005fb246845f3bcc3491692412fd3a899ee306fc
MD5 3302e9d524166c3cba23f03ecc8329a1
BLAKE2b-256 d029fcedc4fba87e54842e55b383cbb7a9a2678bb812333d74baea9cc25f81bd

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for walley_sdk-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 613008bdd0f987833bac50bd29aae98607af9559857dc8da10e289f609206cb0
MD5 75ca49ab7174affdb151dbd5e7cb886b
BLAKE2b-256 7e0345d51c928d81c2d3f76963f7178e67e70c440d91954651782ce05c712532

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