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.3.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.3.0-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: walley_sdk-0.3.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.3.0.tar.gz
Algorithm Hash digest
SHA256 6cedda0862eb3752373118a7a691f119ea05e3e55f0e5624b197efe0b8d39e7d
MD5 7e53782e6e96817cb60ea1a1ac6cf17d
BLAKE2b-256 b0fdc32062571f283c3def3abf42a337755177a38f4a41b0ed46b1612295ad90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: walley_sdk-0.3.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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad5c507887c78887ab82c6496be4670c73f5cbea1815e2f9d771757574ce7e6a
MD5 871931e9b1c1a757a73914f76553b307
BLAKE2b-256 fbcc1dbba4fe76952edc6c89eccf6d80abcccde2b1bd1e1719fc510aa2ab8f33

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