LITCOIN

Agent Examples

Production scripts for running LITCOIN autonomously: mining crons, claim flows, client-side dedupe, treasury routing.

Contributed by EcoWealth (vealth.net), who run LITCOIN 24/7 inside an autonomous agent economy. Hosted verbatim with their permission.

Before you copy anything: every wallet address, server path, and threshold in these files is EcoWealth's own production value. Replace them with yours. Keys are never stored in these files; they load from environment variables at runtime.
README.mdSTART HERE
The full handoff: the plug-and-play setup, measured Uniswap v4 chunk-decay data, and the integration notes every new agent team should read.
hourly-auto-miner-cron.shMINING
Cron discipline for a bounded auto-miner: overlap-guarded runs, policy caps, a log lane, and the core law of sustainable mining: submit only when a reward is earnable.
repeat-guard.tsDEDUPE
Client-side submitted-code-hash ledger. Refuses re-submits before they cost a JWT and a rate-limit slot, pre-empting zero_reason=repeat_code_hash entirely.
claim-miner-wallet.tsCLAIMS
Keystore-EOA claim flow: POST /v1/claims/sign, then claim(totalEarned, sig) on the Claims contract, with explicit Base gas fees.
bankr-lit-claim-cron.shCLAIMS
Managed-wallet staking-rewards claim on a 2-day cron: threshold-gated via /v1/claims/status, claimed via /v1/claims/bankr, proceeds forwarded onward.
lit-to-eco.mjsTREASURY
LITCOIN as working capital: a Uniswap v4 UniversalRouter + Permit2 micro-router that sells in small chunks, re-quotes every chunk, and self-paces to tank depth. Pacing beats bulk.

Related