bore-miner
v1.0.1
Published
BORE mining CLI - agent-first, gasless by default, post-quantum AL8 PoW on Base
Downloads
83
Maintainers
Readme
bore-miner
AL8 BORE mining SDK and CLI for Base. Agent-first defaults are built in, so miners can run with no required CLI args after init.
Installation
npm install bore-miner
# or run directly
npx bore-miner --helpAgent-First Quick Start
# 1) Create owner EOA + smart wallet config (.env)
npx bore-miner init
# 2) Start continuous mining
npx bore-miner mineDefault bootstrap settings:
- RPC:
https://mainnet.base.org - Paymaster:
https://www.minebore.com/api/sponsor - Network: Base Mainnet
- Contract: auto-detected from network defaults
You can override any default with CLI flags or .env values.
CLI Commands
bore-miner --help
bore-miner init --help
bore-miner mine --helpMain commands:
init: create owner EOA key + gasless-smart-wallet configmine: continuous mining loopmine-epoch: mine one epoch and exitstatus: current epoch phase/timers and minted countersstats: chain-level tokenomics/burn metrics (RPC-only)balance: owner + smart-wallet balances
Logging modes:
- default: live status line (clean terminal UX)
--log-everything: full line-by-line logs for piping/agents
Self-pay runway model:
- Commit gas:
70,000 - Reveal gas:
105,000 - Safety buffer:
+10% - Miner estimates remaining mined-epoch runway and warns below
100by default (--topup-warning-mines).
Mining Workflow (Current BoreAL8)
- Miner waits for commit window.
- Miner selects tx route per epoch:
- gasless smart-wallet path when paymaster health is good
- self-pay EOA path when paymaster is unavailable
- Miner grinds nonces (
prefilter -> AL8 -> PoW) for the selected mining address. - Miner submits
commitand waits for confirmation. - Miner waits for reveal window.
- Miner submits
reveal, parses reward, and updates session counters.
Important protocol constraint
BoreAL8 keeps one active commit state per miner address. That means a single address cannot safely pipeline epoch N+1 commit while epoch N is still unrevealed.
For parallel mining across overlapping windows, use multiple mining addresses.
Programmatic Usage
import { BoreAL8Miner } from 'bore-miner';
const miner = new BoreAL8Miner({
rpcUrl: 'https://sepolia.base.org',
privateKey: process.env.PRIVATE_KEY!,
contractAddress: process.env.CONTRACT_ADDRESS!,
paymasterUrl: process.env.PAYMASTER_URL,
});
await miner.mine();Fast Nonce Search API
import { al8 } from 'bore-miner';
const y = al8(challenge, minerAddress, nonce, epoch);MCP Server
npx bore-miner-mcpAvailable MCP tools:
bore_contract_probebore_statusbore_statsbore_recent_eventsbore_balancebore_gasless_healthbore_mine_epochbore_init_wallet
License
MIT
