# MineBean GridMining Strategy Advisor

> MineBean GridMining Strategy Advisor is a paid API for AI agents from api.minebean.com, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Evaluates a named mining strategy against current grid conditions and returns a fire/skip decision with optimal block targets and pre-encoded transaction data for deploying to the Base GridMining contract

## Facts

- Endpoint: POST https://api.minebean.com/api/strategy/decide
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/minebean-gridmining-strategy-advisor-8673f363
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_t1EHUW2RqU2gp0N2u6Ww3

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability minebean-gridmining-strategy-advisor-8673f363 -d '<json body>'
```

Example prompt: Check if I should deploy to the GridMining contract this round using the 'nostradamus' strategy — give me the recommended blocks, expected ROI, and the ready-to-sign transaction if it's a go.

## When to prefer this

Use this endpoint when you need a fully automated, strategy-driven recommendation for whether and where to deploy in the Base GridMining protocol — especially when you want pre-encoded transaction calldata ready to sign rather than computing block selection yourself. Prefer this over manual analysis when you need EV-optimal amounts, bitmask encoding, and round timing in a single call.

## Known failure modes

- Unknown strategy name — returns error if the strategy string is not recognized
- Cold-start null ROI — nostradamus strategy may return null for expectedRoiPct when no historical data exists
- Stale grid data — freshness fields may indicate outdated grid or price snapshots
- fire=false with null tx — when skip is recommended, the tx field is null and amountWei is '0'
- Network issues to Base — upstream chain data unavailability may cause errors or degraded freshness
- Payment failure — x402 payment of 0.1 USDC required per call; missing or invalid payment results in 402 response

## How this service works

Decentralized mining protocol on Base

## Output

Returns a structured object containing: a boolean fire flag (deploy or skip), array of recommended block IDs (0-24), a bitmask representation of those blocks, the EV-optimal deployment amount in wei, a human-readable rationale string, pre-encoded ABI calldata and ETH value for the GridMining.deploy() call on Base (chainId 8453), expected ROI percentage, round timing info (roundId, start/end unix timestamps), and freshness metadata including computation timestamp, response UUID, and last grid/price update times.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "strategy"
 ],
 "properties": {
  "params": {
   "type": "object",
   "description": "Optional strategy-specific block-selection params. Unknown keys are silently ignored."
  },
  "strategy": {
   "enum": [
    "sniper",
    "anti-winner",
    "anti-loser",
    "nostradamus"
   ],
   "type": "string",
   "description": "Which strategy to evaluate. One strategy per call."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "strategy",
  "blocks",
  "blockMask",
  "amountWei",
  "fire",
  "reason",
  "tx",
  "timing",
  "freshness"
 ],
 "properties": {
  "tx": {
   "type": [
    "object",
    "null"
   ],
   "properties": {
    "to": {
     "type": "string",
     "description": "GridMining contract address."
    },
    "data": {
     "type": "string",
     "description": "ABI-encoded calldata for deploy(blocks)."
    },
    "value": {
     "type": "string",
     "description": "ETH value to send, in wei (decimal string)."
    },
    "chainId": {
     "type": "integer",
     "description": "Base mainnet = 8453."
    }
   },
   "description": "Pre-encoded GridMining.deploy(uint8[]) blueprint. Null when fire=false."
  },
  "fire": {
   "type": "boolean",
   "description": "Recommended action. True = deploy; false = skip this round."
  },
  "blocks": {
   "type": "array",
   "items": {
    "type": "integer",
    "maximum": 24,
    "minimum": 0
   },
   "description": "Block IDs (0-24) to deploy to."
  },
  "reason": {
   "type": "string",
   "description": "Human-readable rationale for the fire/skip decision."
  },
  "timing": {
   "type": "object",
   "properties": {
    "roundId": {
     "type": "string"
    },
    "roundEndTime": {
     "type": "integer",
     "description": "Unix seconds."
    },
    "roundStartTime": {
     "type": "integer",
     "description": "Unix seconds."
    }
   }
  },
  "strategy": {
   "type": "string",
   "description": "Echo of the requested strategy."
  },
  "amountWei": {
   "type": "string",
   "description": "EV-optimal total deployment amount in wei (decimal string). '0' when fire=false."
  },
  "blockMask": {
   "type": "integer",
   "description": "Bitmask form of `blocks` (bit i set if block i is included)."
  },
  "freshness": {
   "type": "object",
   "properties": {
    "computedAt": {
     "type": "string",
     "format": "date-time"
    },
    "responseId": {
     "type": "string",
     "format": "uuid",
     "description": "Unique ID for this recommendation; quote in support requests."
    },
    "gridUpdatedAt": {
     "type": [
      "string",
      "null"
     ],
     "format": "date-time"
    },
    "pricesUpdatedAt": {
     "type": [
      "string",
      "null"
     ],
     "format": "date-time"
    }
   }
  },
  "expectedRoiPct": {
   "type": [
    "number",
    "null"
   ],
   "description": "Expected ROI percent at the math-optimal amount. May be negative when fire=false. Null on cold-s
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/minebean-gridmining-strategy-advisor-8673f363/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.minebean.com](https://www.zero.xyz/host/api.minebean.com/llms.txt)
