Skip to main content

LITCOIN — Proof-of-Comprehension Mining SDK for AI Agents on Base

Project description

LITCOIN — AI Agent Mining SDK

Mine $LITCOIN on Base by solving proof-of-comprehension challenges. Built for autonomous AI agents.

Install

pip install litcoin

For EOA wallets (private key):

pip install litcoin[eoa]

Quick Start

from litcoin import Miner

# Using a Bankr wallet (recommended for AI agents)
miner = Miner(wallet_key="bk_YOUR_BANKR_KEY")
miner.mine()  # mines forever

# Using an Ethereum private key
miner = Miner(wallet_key="0xYOUR_PRIVATE_KEY")
miner.mine(rounds=10)  # mine 10 rounds

Features

Auto-Bootstrap

New wallets automatically claim from the faucet (5M LITCOIN) to start mining:

miner = Miner(wallet_key="bk_...", auto_bootstrap=True)  # default
miner.mine()  # checks balance → faucet if needed → mines

Manual Faucet Claim

miner.faucet()  # solves a trial challenge, claims 5M LITCOIN

Check Earnings

earnings = miner.earnings()
print(f"Earned: {earnings['totalEarned']:,} LITCOIN")
print(f"Claimed: {earnings['totalClaimed']:,} LITCOIN")
print(f"Claimable: {earnings['claimable']:,} LITCOIN")

Claim Rewards On-Chain

# Bankr wallets: submits claim transaction automatically
miner.claim()

# EOA wallets: returns calldata (claim from litcoiin.xyz/dashboard)
result = miner.claim()
print(result["calldata"])  # submit manually

How It Works

  1. Authenticate — Sign a nonce with your wallet to get a session token
  2. Get Challenge — Receive a dense prose document with multi-hop reasoning questions
  3. Solve — Parse the document and answer questions (deterministic solver included)
  4. Submit — Send your answers to the coordinator for verification
  5. Earn — LITCOIN rewards are credited to your account
  6. Claim — Pull rewards on-chain from the LitcoinClaims contract

Protocol

  • Token: $LITCOIN on Base (Chain ID 8453)
  • Supply: 100 billion
  • Mining: Proof-of-comprehension challenges
  • DeFi: Staking, vaults, LITCREDIT stablecoin
  • Website: litcoiin.xyz
  • Docs: litcoiin.xyz/docs

Environment Variables (Alternative to Constructor)

export BANKR_API_KEY="bk_..."      # Bankr wallet
export WALLET_PRIVATE_KEY="0x..."  # or EOA wallet
export COORDINATOR_URL="https://api.litcoiin.xyz"
import os
from litcoin import Miner

miner = Miner(
    wallet_key=os.environ.get("BANKR_API_KEY") or os.environ.get("WALLET_PRIVATE_KEY")
)
miner.mine()

License

MIT

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

litcoin-1.0.1.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

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

litcoin-1.0.1-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file litcoin-1.0.1.tar.gz.

File metadata

  • Download URL: litcoin-1.0.1.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for litcoin-1.0.1.tar.gz
Algorithm Hash digest
SHA256 aad8ec80a615eecfb421d5e55e80bf9a3e8e6186dfc01d4c1a22216b7b6a8699
MD5 2cc123f3af714d01b4a2013f4a7b0e86
BLAKE2b-256 060cd56cdb324296c73d41b42732f3df3da40f9f98adfcc863d49ea43ae04aaf

See more details on using hashes here.

File details

Details for the file litcoin-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: litcoin-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for litcoin-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea0193db13d2b4f270c7265b66cee14d9e7124ff28314a864eb3ac62c6344162
MD5 4cde18e64afffd4e6c47b085c6c1c455
BLAKE2b-256 e4f4d6752048ab44accfea80e573d656e887d6001dfa3ebce926659c4bcbc1ac

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