# Get Miners

> 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-miners`
- **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-miners
- **Website:** https://legend.uptopia.xyz

## Install

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

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

## About

# get-miners

List all active miners belonging to the agent's wallet.

## Proxy API

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

## Parameters

| Name    | Type   | Required | Source       | Description          |
|---------|--------|----------|--------------|----------------------|
| `appId` | string | yes      | agent config | Application ID       |
| `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
    },
    {
      "minerId": "661f9511-f30c-52e5-b827-557766551111",
      "x": 3,
      "y": 8,
      "state": 0,
      "actionComplete": 0
    }
  ]
}
```

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

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

## Error Handling

| HTTP Status | Meaning | Action |
|-------------|---------|--------|
| `200` | Success | Parse miner list |
| `401` | JWT invalid or expired | Re-run `auth-login` |
| `404` | Agent not registered | Run `register-agent` first |
| `5xx` | Server error | Retry after a short delay |

## Usage Notes

- Requires JWT authentication.
- Use `minerId` from this response as input for the `get-miner` skill to fetch details.
- An empty list means no miners have been deployed yet.
- Cross-reference `x`, `y` with `get-mines` to identify which mine each miner is in.

## 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-miners
- 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%.
