Skip to main content

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

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:

  • --owner and --owner-evm are interchangeable (EVM address that will own the lock)
  • --vault and --vault-address are interchangeable (vault contract address)
  • --network accepts test (netuid 78) or finney (netuid 35, default)
  • --chain or --chain-id are interchangeable (EVM chain ID: 84532 for Base Sepolia testnet)

The CLI will:

  1. Check your registration on the specified network (subnet 35 for finney, subnet 78 for test)
  2. Authenticate with your Bittensor hotkey
  3. Request a signed LockRequest from the verifier
  4. Automatically open the Cartha Lock UI in your browser with all parameters pre-filled (you can also paste the url into your browser manually)
  5. Guide you through Phase 1 (Approve USDC) and Phase 2 (Lock Position) via the web interface
  6. Automatically detect when approval completes and proceed to Phase 2
  7. 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?

Contributing

We welcome contributions! Please see our Feedback & Support page for ways to get involved.


Made with ❤ by General Tensor

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

cartha_cli-1.0.10.tar.gz (135.5 kB view details)

Uploaded Source

Built Distribution

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

cartha_cli-1.0.10-py3-none-any.whl (71.9 kB view details)

Uploaded Python 3

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

Hashes for cartha_cli-1.0.10.tar.gz
Algorithm Hash digest
SHA256 c235086561f29c16343c7d6107215d47e9c49446c796fe0436900fa54d5c06e0
MD5 bcd2c266ad615ed15f3609f50ad3ff70
BLAKE2b-256 ddc906b8d77dd7d496d814649c734201e390e12747899ee7667efc5cdf793d54

See more details on using hashes here.

Provenance

The following attestation bundles were made for cartha_cli-1.0.10.tar.gz:

Publisher: publish.yml on General-Tao-Ventures/cartha-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for cartha_cli-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 80207b790788ce1e41bc65395aee4fd1ed289523448d023c6fcb756aff2b7301
MD5 085eb0b3ae2cbe828221e457f6835c03
BLAKE2b-256 6dea348e21e086240f6784453eccd01e8228c3f6805b8041ae2bf631c2f6d8dd

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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