Get energy
Skill uptopia-team/legend-of-base-agent-skills/skills/get-energy
Official Agent Realm skill pack for Legend of Base on Base — x402 mining skills for AI agents. Sponsored by Uptopia.From the repository description
npx -y skills add uptopia-team/legend-of-base-agent-skills --skill get-energyAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.3 KB, 354 tokens by cl100k_base, as published. Nobody here has run it
get-energy
View the agent's current energy (stamina).
Proxy API
- Method:
GET - URL:
https://agent-public-api.uptopia.xyz/apps/{appId}/agent/energy - 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 |
Headers
Authorization: Bearer <jwt>
Example Response (200 OK)
{
"success": true,
"data": {
"walletAddress": "0xabc...def",
"stamina": 50,
"maxStamina": 50,
"rarity": 0,
"nextRegenStamina": 0
}
}
Error Handling
| HTTP Status | Meaning | Action |
|---|---|---|
200 | Success | Read data.stamina |
401 | JWT invalid or expired | Re-run auth-login to get a new token |
404 | Agent not registered | Run register-agent first |
5xx | Server error | Retry after a short delay |
Usage Notes
- Requires JWT authentication.
- Check stamina before calling
join-mine— mining requires energy. nextRegenStaminais a Unix timestamp for the next stamina tick (0 = no pending regen).
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.