Skip to main content

A Python package for interfacing with Dhali

Project description

Project generated with PyScaffold

testBadge publishBadge

Dhali-py

This python package is intended to support interfacing with Dhali. It offers a cli tools for creating payment claims used to access Dhali:

$ dhali create-xrpl-payment-claim -h
usage: dhali create-xrpl-payment-claim [-h] [-s SOURCE_SECRET] [-a AUTH_CLAIM_AMOUNT] [-t TOTAL_AMOUNT_CONTAINED_IN_CHANNEL]

options:
-h, --help            show this help message and exit
-s SOURCE_SECRET, --source_secret SOURCE_SECRET
-a AUTH_CLAIM_AMOUNT, --auth_claim_amount AUTH_CLAIM_AMOUNT
                        Amount (in drops) that claim authorises to be extracted from the channel (must be less than --total_amount_contained_in_channel)
-t TOTAL_AMOUNT_CONTAINED_IN_CHANNEL, --total_amount_contained_in_channel TOTAL_AMOUNT_CONTAINED_IN_CHANNEL
                        Total drops to escrow in the channel (must be less than total amount of XRP in wallet)

Install and run

  1. pip install .

  2. To generate a test XRPL wallet or determine you wallet’s seed:

    dhali create-xrpl-wallet
  3. To generate a Dhali payment claim:

    dhali create-xrpl-payment-claim -s <secret from 2.> -a 500000 -t 1000000

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

dhali_py-0.0.46.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

dhali_py-0.0.46-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file dhali_py-0.0.46.tar.gz.

File metadata

  • Download URL: dhali_py-0.0.46.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for dhali_py-0.0.46.tar.gz
Algorithm Hash digest
SHA256 1bd844f6a8aef822ebfef4a126aba8ca6c7c895cadb5fa658e23632c78f7a623
MD5 6a2c18484bd38591f23f4dfd531acb0b
BLAKE2b-256 79a6836474ad88214b90d6671450f9a835abc0745f02acd8277c7dfe5aa8c8a5

See more details on using hashes here.

File details

Details for the file dhali_py-0.0.46-py3-none-any.whl.

File metadata

  • Download URL: dhali_py-0.0.46-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for dhali_py-0.0.46-py3-none-any.whl
Algorithm Hash digest
SHA256 71b95cc738c8e205c586bb856d594ef691daad996631625087a8ef5eadebe74a
MD5 133d6d1764fe0024642cbef538763326
BLAKE2b-256 bdf6f6b67807fe88f0a5548e3d8d963ada0d0b139b38130c830e1af976772b33

See more details on using hashes here.

Supported by

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