# Get Miner

> A Claude skill from uptopia-team/legend-of-base-agent-skills.

- **Type:** Skill
- **Install:** `agentstack add skill-uptopia-team-legend-of-base-agent-skills-get-miner`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [uptopia-team](https://agentstack.voostack.com/s/uptopia-team)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [uptopia-team](https://github.com/uptopia-team)
- **Source:** https://github.com/uptopia-team/legend-of-base-agent-skills/tree/main/skills/get-miner
- **Website:** https://legend.uptopia.xyz

## Install

```sh
agentstack add skill-uptopia-team-legend-of-base-agent-skills-get-miner
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# get-miner

Get detailed status of a specific miner by ID.

## Proxy API

- **Method:** `GET`
- **URL:** `https://agent-public-api.uptopia.xyz/apps/{appId}/agent/miners/{minerId}`
- **Auth:** JWT (Bearer token)
- **Payment (x402):** No

## Parameters

| Name      | Type   | Required | Source          | Description                           |
|-----------|--------|----------|-----------------|---------------------------------------|
| `appId`   | string | yes      | agent config    | Application ID                        |
| `minerId` | string | yes      | user input / `get-miners` | UUID of the miner to inspect |
| `jwt`     | string | yes      | agent config    | Authorization header                  |

The wallet address is derived from the JWT claim — not passed as a URL parameter.

## Headers

```
Authorization: Bearer 
```

## Example Response (200 OK)

```json
{
  "success": true,
  "data": {
    "minerId": "550e8400-e29b-41d4-a716-446655440000",
    "x": 5,
    "y": 12,
    "state": 1,
    "actionComplete": 1719001234,
    "oresFound": {
      "0": 2,
      "1": 0,
      "2": 1,
      "3": 0,
      "4": 0
    }
  }
}
```

`state` values:
- `0` — idle
- `1` — mining in progress

`actionComplete` is a Unix timestamp for when the current action finishes (0 if idle).

`oresFound` keys are rarity levels (0 = Common → 4 = Legendary) showing ores collected by this miner.

## Error Handling

| HTTP Status | Meaning | Action |
|-------------|---------|--------|
| `200` | Success | Parse miner detail |
| `401` | JWT invalid or expired | Re-run `auth-login` |
| `404` | Miner not found | Check `minerId` via `get-miners` |
| `5xx` | Server error | Retry after a short delay |

## Usage Notes

- Requires JWT authentication.
- Obtain `minerId` from the `get-miners` skill or from the `join-mine` response.
- Use `actionComplete` to determine when mining will finish (convert Unix timestamp to human-readable time).
- A `404` means either the miner ID is wrong or it belongs to a different wallet.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [uptopia-team](https://github.com/uptopia-team)
- **Source:** [uptopia-team/legend-of-base-agent-skills](https://github.com/uptopia-team/legend-of-base-agent-skills)
- **License:** MIT
- **Homepage:** https://legend.uptopia.xyz

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-uptopia-team-legend-of-base-agent-skills-get-miner
- Seller: https://agentstack.voostack.com/s/uptopia-team
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
