CLI utilities for Cartha subnet miners.
Project description
Cartha CLI
The official command-line tool for Cartha subnet miners. Cartha is the Liquidity Provider for 0xMarkets DEX. A simple, powerful way to manage your mining operations—from registration to tracking your locked funds.
Why Cartha CLI?
Cartha CLI makes mining on the Cartha subnet effortless. As the Liquidity Provider for 0xMarkets DEX, Cartha enables miners to provide liquidity and earn rewards:
- 🔐 One-Click Registration - Get started mining in minutes
- 📊 Instant Status Updates - See all your pools, balances, and expiration dates at a glance
- ⏰ Smart Expiration Warnings - Never miss a renewal with color-coded countdowns
- 💼 Multi-Pool Management - Track multiple trading pairs in one place
- 🔒 Secure Authentication - Session-based authentication with your Bittensor hotkey
Installation
pip install cartha-cli
Quick Start
# Show available commands
cartha --help
# Get started with registration
cartha miner register --help
# Check your miner status (no authentication needed)
cartha miner status --help
# Check CLI health and connectivity
cartha utils health
# Or use short aliases
cartha m status
cartha v lock
cartha u health
Requirements
- Python 3.11
- Bittensor wallet within btcli
- learn how to create/import one here https://docs.learnbittensor.org/keys/working-with-keys
What You Can Do
Get Started
Register your miner:
cartha miner register --wallet-name your-wallet --wallet-hotkey your-hotkey
Check your status anytime:
cartha miner status --wallet-name your-wallet --wallet-hotkey your-hotkey
# Or use the short alias: cartha m status
Track Your Miner Status See all your active trading pairs, balances, and when they expire—all in one command. The CLI shows you:
- Which pools are active and earning rewards
- How much you have locked in each pool
- Days remaining before expiration (with helpful warnings)
- Which pools are included in the next reward epoch
View Available Pools
See all available pools with their pool IDs and vault addresses:
cartha vault pools
# Or use: cartha v pools
This shows you which pools are available, their full pool IDs, vault contract addresses, and chain IDs.
Lock Your Funds to start Mining
Create a new lock position with the streamlined lock flow:
cartha vault lock \
--coldkey your-wallet \
--hotkey your-hotkey \
--pool-id BTCUSD \
--amount 1000.0 \
--lock-days 30 \
--owner-evm 0xYourEVMAddress \
--chain 8453 \
--vault-address 0xVaultAddress
# Or use: cartha v lock
Parameter Notes:
--ownerand--owner-evmare interchangeable (EVM address that will own the lock)--vaultand--vault-addressare interchangeable (vault contract address)--networkacceptstest(netuid 78) orfinney(netuid 35, default)--chainor--chain-idare interchangeable (EVM chain ID: 84532 for Base Sepolia testnet)
The CLI will:
- Check your registration on the specified network (subnet 35 for finney, subnet 78 for test)
- Authenticate with your Bittensor hotkey
- Request a signed LockRequest from the verifier
- Automatically open the Cartha Lock UI in your browser with all parameters pre-filled (you can also paste the url into your browser manually)
- Guide you through Phase 1 (Approve USDC) and Phase 2 (Lock Position) via the web interface
- Automatically detect when approval completes and proceed to Phase 2
- The verifier automatically detects your lock and adds you to the upcoming epoch
Managing Positions: Visit https://cartha.finance/manage to view all your positions, extend locks, or top up existing positions.
Check Your Setup
Verify your CLI is configured correctly and can reach all services:
cartha utils health
# Or use the short alias
cartha u health
This checks:
- Verifier connectivity and latency
- Bittensor network connectivity
- Configuration validation
- Subnet metadata
- Environment variables
Use cartha utils health --verbose (or cartha u health --verbose) for detailed troubleshooting information.
Need Help?
- Full Command Reference - Complete guide to all commands
- Testnet Guide - Getting started on testnet
- Feedback & Support - Questions or suggestions?
Contributing
We welcome contributions! Please see our Feedback & Support page for ways to get involved.
Made with ❤ by General Tensor
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cartha_cli-1.0.10.tar.gz.
File metadata
- Download URL: cartha_cli-1.0.10.tar.gz
- Upload date:
- Size: 135.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c235086561f29c16343c7d6107215d47e9c49446c796fe0436900fa54d5c06e0
|
|
| MD5 |
bcd2c266ad615ed15f3609f50ad3ff70
|
|
| BLAKE2b-256 |
ddc906b8d77dd7d496d814649c734201e390e12747899ee7667efc5cdf793d54
|
Provenance
The following attestation bundles were made for cartha_cli-1.0.10.tar.gz:
Publisher:
publish.yml on General-Tao-Ventures/cartha-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cartha_cli-1.0.10.tar.gz -
Subject digest:
c235086561f29c16343c7d6107215d47e9c49446c796fe0436900fa54d5c06e0 - Sigstore transparency entry: 920288564
- Sigstore integration time:
-
Permalink:
General-Tao-Ventures/cartha-cli@858e076fc3d68fba71939fc714ec5085aca6b63f -
Branch / Tag:
refs/tags/1.0.10 - Owner: https://github.com/General-Tao-Ventures
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@858e076fc3d68fba71939fc714ec5085aca6b63f -
Trigger Event:
release
-
Statement type:
File details
Details for the file cartha_cli-1.0.10-py3-none-any.whl.
File metadata
- Download URL: cartha_cli-1.0.10-py3-none-any.whl
- Upload date:
- Size: 71.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80207b790788ce1e41bc65395aee4fd1ed289523448d023c6fcb756aff2b7301
|
|
| MD5 |
085eb0b3ae2cbe828221e457f6835c03
|
|
| BLAKE2b-256 |
6dea348e21e086240f6784453eccd01e8228c3f6805b8041ae2bf631c2f6d8dd
|
Provenance
The following attestation bundles were made for cartha_cli-1.0.10-py3-none-any.whl:
Publisher:
publish.yml on General-Tao-Ventures/cartha-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cartha_cli-1.0.10-py3-none-any.whl -
Subject digest:
80207b790788ce1e41bc65395aee4fd1ed289523448d023c6fcb756aff2b7301 - Sigstore transparency entry: 920288592
- Sigstore integration time:
-
Permalink:
General-Tao-Ventures/cartha-cli@858e076fc3d68fba71939fc714ec5085aca6b63f -
Branch / Tag:
refs/tags/1.0.10 - Owner: https://github.com/General-Tao-Ventures
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@858e076fc3d68fba71939fc714ec5085aca6b63f -
Trigger Event:
release
-
Statement type: