Skip to main content

Auto-Claim dexie rewards

PyPI version Python version

dexie-rewards is a Python CLI helper tool designed to automatically claim dexie liquidity rewards for offers created using the official Chia Wallet. The tool communicates locally with the Chia Wallet RPC, requests all created offers, and checks them for claimable rewards.

When rewards are claimed, a message from the input (maker) address of the offer is signed to prove ownership of the offer. The signature is then sent to dexie to claim the rewards. dexie distributes claimed rewards to the input (maker) address in batches approximately every 15 minutes.

Example Output

❯ dexie rewards claim
Found 6 offers with rewards
╭──────────────────────────────────────────────┬─────────┬─────╮
│                   Offer ID                   │ Rewards │ CAT │
├──────────────────────────────────────────────┼─────────┼─────┤
│ 8Ya1mwC7Z8S4RhKhuJjKPH6mQVksz4Hah8JsZ5NjaBYY │   0.494 │ DBX │
│ BZFXcbJM7oSMz9RatJpMBSD1Hmj4JWXHJE7DCBXDV8mJ │  21.854 │ DBX │
│ CbdGX5KUHnHLbX8VSFPKTDcbK87NKUtQTQaFxtYQvnPG │   7.810 │ DBX │
│ 8GpFJ8o6pVthTKmzimKxTTg8vT6sPFm44xz3nXNUMtbG │   4.197 │ DBX │
│ 4mhTGao7SDTCsgZknLDhaboE9xBhkB56ZoWVyMzpA51E │  10.831 │ DBX │
│ 3BWdysASaDMN2sCnB9S9tBtc7nUeC3Ys7ZW3aX6xpEZu │   9.806 │ HOA │
╰──────────────────────────────────────────────┴─────────┴─────╯
Claim all? [y/n]:

Installing

It is recommended to install dexie-rewards using pip.

Install via pip

pip install dexie-rewards

Note for macOS: If pip is not found, try pip3 instead.

Install from the repository (optional)

  1. Clone the repository
git clone git@github.com:dexie-space/dexie-rewards.git
cd ./dexie-rewards/
  1. Activate Poetry Shell
poetry shell
  1. Install Dexie CLI
poetry install

Configuration (optional)

In most cases the default configuration should be sufficient. However, if you want to use specific endpoints and paths, you can set the following environment variables:

export CHIA_ROOT="~/.chia/mainnet"
export DEXIE_URL="https://dexie.space"
export DEXIE_API_URL="https://api.dexie.space/v1/"
export DEXIE_DB_PATH="/dexie_db"

Available Commands

Make sure that your Chia wallet is running and fully synced before using dexie-rewards. A full node is not required.

Run any command with the --help option to see all available functionality.

List offers with outstanding (claimable) rewards

❯ dexie rewards list

  --fingerprint  -f        Set the fingerprint to specify which wallet to use
  --json         -j        Displays offers as JSON
  --verbose      -v        Display verbose output
  --help                   Show help and exit

Claim all outstanding (claimable) rewards

❯ dexie rewards claim

  --fingerprint     -f        Set the fingerprint to specify which wallet to use
  --verify-only     -vo       Only verify the claim, don't actually claim
  --yes             -y        Skip claim confirmation
  --verbose         -v        Display verbose output
  --target          -t        Specify a target address to claim rewards to
  --completed-only  -co       Only claim rewards for completed and cancelled offers
  --help                      Show help and exit

Troubleshooting

If you encounter any issues, follow these steps to help identify and resolve them:

  1. Check your Python version: Ensure you are using Python 3.10 or later, as older versions are not supported.

  2. Update packages: Update both dexie-rewards and its dependencies by running pip install --upgrade dexie-rewards.

  3. Verify configuration: Double-check the environment variables (if set) to ensure they are correct.

  4. Enable verbose output: Use the -v or --verbose option with the relevant command to get more detailed output, which can help pinpoint the issue.

  5. Check for known issues: Review the issue tracker to see if the problem you are experiencing has been reported and if there is a potential solution or workaround.

  6. Report a new issue: If you can't find a solution in the issue tracker, create a new issue, providing all relevant information and steps to reproduce the problem. This will help us to address the issue and improve the tool.

  7. Seek community support: Visit the dexie Discord community for assistance, as other users may have encountered similar issues and can share their solutions or workarounds.

Alternatives

Advanced market makers may develop their own tools for claiming liquidity rewards. Refer to the dexie API documentation for information on how to claim rewards for offers using the API.

Contributions

Contributions are welcome and encouraged. Please fork the repository and submit a pull request to the main branch. If you have any questions, feel free to reach out to us on Discord.

Metadata

Release files for dexie-rewards 2.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dexie-rewards 2.5.0
File Size Uploaded Provenance Actions
dexie_rewards-2.5.0.tar.gz 16.9 kB Without provenance Details for dexie_rewards-2.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dexie-rewards 2.5.0
File Interpreter ABI Platform Actions
dexie_rewards-2.5.0-py3-none-any.whl Python 3 none any Details for dexie_rewards-2.5.0-py3-none-any.whl

Total release size: 36.9 kB

Release files / dexie_rewards-2.5.0.tar.gz

Download URL dexie_rewards-2.5.0.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6bc6e2bf2dce3c0627ba04cda2d08aa125d3c17618ac4dc33a5b6b75871fd5e6
BLAKE2b-256 checksum
How to use checksums
7a6b0f94a38227a2853bc19577cff1a3f01eee4be800976f22678b5a9bbf3dcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.8 Darwin/24.2.0

Release files / dexie_rewards-2.5.0-py3-none-any.whl

Download URL dexie_rewards-2.5.0-py3-none-any.whl
Size 20.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b16298012d30c8c5c676bfdd7f141bd6b19f362a1b3906f5f585cf7b8c0fc00
BLAKE2b-256 checksum
How to use checksums
6697b5795e95c41fd444eabca318fcc12f6822aa36bb4cf7d815b50742d205c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.8 Darwin/24.2.0

Security for dexie-rewards 2.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.5.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page