Xpersona
A

AWP Skill

CLAWHUB · Unverified

AWP (Agent Work Protocol) — the complete toolkit for agent mining on Base, Ethereum, Arbitrum, and BSC. Use this skill when the user explicitly mentions AWP,... Skill: AWP Skill Owner: kilb Summary: AWP (Agent Work Protocol) — the complete toolkit for agent mining on Base, Ethereum, Arbitrum, and BSC. Use this skill when the user explicitly mentions AWP,... Tags: latest:1.7.0 Version history: v1.7.0 | 2026-04-11T16:28:15.241Z | user AWP skill 1.7.0 — Adds support for new wallet unlock flows and API enhancements. - Compatible with new awp-wallet versions: unlocking is now opt

62
Rank
84
Safety
1.5k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17721r0m967d8j56q9shvs86583gj87:awp
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-kilb-awp/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

160,000 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: awp
version: 1.7.0
description: >
  AWP (Agent Work Protocol) — the complete toolkit for agent mining on Base, Ethereum,
  Arbitrum, and BSC. Use this skill when the user explicitly mentions AWP, worknets,
  veAWP, awp-wallet, or AWP-specific operations.

  Handles: onboarding (wallet setup, registration, worknet joining), staking (deposit,
  withdraw, gasless relay via ERC-2612 permit), allocation (allocate/deallocate stake
  to agents on worknets), worknet management (register, pause, resume, cancel), agent
  binding (link agent wallet to owner), governance (proposals, voting), and querying
  (balances, positions, emissions, epochs, announcements).

  Trigger keywords: AWP, veAWP, awp-wallet, worknet, AWPRegistry, AWPAllocator,
  AWPWorkNet, agent staking (in AWP context), "allocate AWP", "bind my agent",
  "claim AWP rewards", "AWP emission", "AWP epoch".

  NOT for: Uniswap, Aave, Lido, Compound, generic Solidity/Hardhat, token swaps,
  bridging, or non-AWP DeFi protocols. Do NOT trigger on generic phrases like
  "start working" or "start earning" unless AWP is explicitly mentioned in context.
metadata:
  openclaw:
    requires:
      bins:
        - python3              # All bundled scripts are Python 3.9+
        - node                 # Required by wallet-raw-call.mjs (Node.js bridge for raw contract calls)
      anyBins:
        - awp-wallet           # awp-wallet CLI — install from https://github.com/awp-core/awp-wallet
      env:
        - EVM_CHAIN            # Optional. Chain name or ID (base, ethereum, arbitrum, bsc). Default: base
      config:
        - ~/.awp/openclaw.json # OpenClaw push config (user-created only — skill never auto-creates)
    primaryEnv: AWP_WALLET_TOKEN
    emoji: "🪼"
    homepage: https://github.com/awp-core/awp-skill
    security:
      daemon:
        opt_in: true              # Never auto-starts; requires explicit user consent
        read_only: true           # Does not sign transactions or access private keys
        files: ["~/.awp/"]        # Only writes to its own data directory
        no_network_listeners: true
      wallet_bridge:
        no_direct_key_access: true  # Uses awp-wallet's loadSigner(), never sees raw keys
        contract_allowlist: true    # Two-layer: static hardcoded ∩ remote registry
        session_token_only: true    # Requires short-lived session token, not private key
---

# AWP Registry

**Skill version: 1.7.0**

## Requirements & Security

- **Runtime**: python3, node (for wallet-raw-call.mjs bridge)
- **Wallet**: awp-wallet CLI — install from https://github.com/awp-core/awp-wallet
- **Credential**: awp-wallet session token (passed as `--token`; generated by `awp-wallet unlock`; no user-supplied password). New wallet versions no longer require unlock — `--token` is optional for backwards compatibility with older wallets.
- **Chain**: `EVM_CHAIN` env var (optional, default: base). Accepts name or numeric ID.
- **Network endpoints** (hardcoded, not overridable — se

_meta.json

{
  "ownerId": "kn7czspc69y3z8mt52napab9b183906c",
  "slug": "awp",
  "version": "1.7.0",
  "publishedAt": 1775924895241
}

references/api-reference.md

# AWP Skill — API Reference

Quick index of JSON-RPC 2.0 methods and relay endpoints. For write operations, see the dedicated command files:
- **commands-staking.md** — S1 Register/Bind, S2 Deposit, S3 Allocate
- **commands-worknet.md** — M1 Register Worknet, M2 Lifecycle, M3-M4 Settings
- **commands-governance.md** — G1 Proposals, G2 Voting, G3/G4 Queries, Supplementary

---

## API Transport

| Transport | URL | Notes |
|-----------|-----|-------|
| JSON-RPC 2.0 | `POST https://api.awp.sh/v2` | All read queries |
| Discovery | `GET https://api.awp.sh/v2` | Method listing |
| WebSocket | `wss://api.awp.sh/ws/live` | Real-time events |
| Batch | `POST https://api.awp.sh/v2` | Up to 20 requests per batch, executed concurrently |
| Health Check | `GET https://api.awp.sh/api/health` | REST health endpoint |

### Request/Response Format

```json
// Request
{"jsonrpc": "2.0", "method": "namespace.method", "params": {...}, "id": 1}

// Batch Request
[
  {"jsonrpc": "2.0", "method": "health.check", "params": {}, "id": 1},
  {"jsonrpc": "2.0", "method": "stats.global", "params": {}, "id": 2}
]

// Success
{"jsonrpc": "2.0", "result": {...}, "id": 1}

// Error
{"jsonrpc": "2.0", "error": {"code": -32601, "message": "method not found"}, "id": 1}
```

### Error Codes

| Code | Meaning |
|------|---------|
| -32700 | Parse error |
| -32600 | Invalid request |
| -32601 | Method not found |
| -32602 | Invalid params |
| -32603 | Internal error |
| -32001 | Resource not found |

### Common Parameters

- `address`: `string` — 0x-prefixed, 40 hex chars, case-insensitive
- `worknetId`: `string` — Globally unique: `chainId * 100_000_000 + localId`, passed as decimal string
- `chainId`: `integer` — Optional on most methods; omit for all-chain aggregation, specify for single-chain
- `page`: `integer` — 1-indexed (default 1)
- `limit`: `integer` — Items per page (default 20, max 100)
- `status`: `string` — Enum. Worknet: `"Pending"`, `"Active"`, `"Paused"`, `"Banned"`. Proposal: `"Active"`, `"Canceled"`, `"Defeated"`, `"Succeeded"`, `"Queued"`, `"Expired"`, `"Executed"`

---

## JSON-RPC Methods

### System

| Method | Params | Description |
|--------|--------|-------------|
| `stats.global` | — | Global protocol stats (users, worknets, staked, emitted, chains) |
| `registry.get` | `chainId?` | Contract addresses + EIP-712 domain for one chain. Omit chainId → single dict for the default chain |
| `registry.list` | — | Contract addresses for all chains (returns array of per-chain entries) |
| `health.check` | — | `{"status": "ok"}` |
| `health.detailed` | — | Per-chain indexer/keeper status |
| `chains.list` | — | Supported chains array |

### Users

| Method | Params | Description |
|--------|--------|-------------|
| `users.list` | `chainId?`, `page?`, `limit?` | Paginated user list |
| `users.listGlobal` | `page?`, `limit?` | Cross-chain deduplicated |
| `users.count` | `chainId?` | Total user count |
| `users.get` | `address` (required), `chainId?` | User details (

references/commands-governance.md

# AWP Governance Commands

**API Endpoint**: `POST https://api.awp.sh/v2` (JSON-RPC 2.0)

> **IMPORTANT**: Always use the bundled `scripts/*.py` files for write operations — they handle ABI encoding natively in Python, require only python3, and work without Foundry or curl/jq.
> The `cast calldata` examples below are for reference only; do NOT run them directly.

## Setup (reference only — bundled scripts handle this automatically)

```bash
# Reference only — actual operations are handled automatically by scripts/*.py
# Contract addresses (same on all chains)
AWP_REGISTRY="0x0000F34Ed3594F54faABbCb2Ec45738DDD1c001A"
AWP_TOKEN="0x0000A1050AcF9DEA8af9c2E74f0D7CF43f1000A1"
VE_AWP="0x0000b534C63D78212f1BDCc315165852793A00A8"
AWP_WORKNET="0x00000bfbdEf8533E5F3228c9C846522D906100A7"
DAO_ADDR="0x00006879f79f3Da189b5D0fF6e58ad0127Cc0DA0"
TREASURY="0x82562023a053025F3201785160CaE6051efD759e"

WALLET_ADDR=$(awp-wallet receive | jq -r '.eoaAddress')
```

---

## G1 · Create Proposal

### Contract Calls

```solidity
// Executable proposal (via Timelock)
function proposeWithTokens(
    address[] targets, uint256[] values, bytes[] calldatas,
    string description, uint256[] tokenIds
) returns (uint256 proposalId)
// Requires >= 200,000 AWP voting power across tokenIds

// Signal-only proposal (no execution, no Timelock)
function signalPropose(string description, uint256[] tokenIds) returns (uint256 proposalId)

// Check proposal type
function isSignalProposal(uint256 proposalId) view returns (bool)
```

---

## G2 · Vote

### Contract Call

```solidity
function castVoteWithReasonAndParams(
    uint256 proposalId, uint8 support, string reason, bytes params
)
// support: 0=Against, 1=For, 2=Abstain
// params = encodeAbiParameters([{type:'uint256[]'}], [tokenIds])
// DO NOT use encodePacked — use encodeAbiParameters
//
// BLOCKED: castVote() and castVoteWithReason() revert — MUST use params variant
//
// Voting power: amount * sqrt(min(remainingTime, 54 weeks) / 7 days)
// Anti-manipulation: NFTs with createdAt >= proposalCreatedAt CANNOT vote
//   (only positions created strictly before the proposal timestamp are eligible)
// Per-tokenId double-vote prevention
```

### Supporting View Functions

```solidity
function hasVotedWithToken(uint256 proposalId, uint256 tokenId) view returns (bool)
function proposalCreatedAt(uint256 proposalId) view returns (uint64)   // Timestamp when proposal was created
```

### Complete Command Template

```bash
# The bundled script handles position filtering, ABI encoding, and raw call automatically:
python3 scripts/onchain-vote.py --token {T} --proposal {proposalId} --support 1 --reason "I support this"
# support: 0=Against, 1=For, 2=Abstain
```

---

## G3 · Query Proposals

### JSON-RPC

```json
// List proposals (with optional status filter)
{"jsonrpc": "2.0", "method": "governance.listProposals", "params": {"status": "Active", "page": 1, "limit": 20}, "id": 1}

// List all proposals cross-chain
{"jsonrpc": "2.0", "method": "go

references/commands-staking.md

# AWP Staking Commands

**API Endpoint**: `POST https://api.awp.sh/v2` (JSON-RPC 2.0)

> **IMPORTANT**: Always use the bundled `scripts/*.py` files for write operations — they handle ABI encoding natively in Python, require only python3, and work without Foundry or curl/jq.
> The `cast calldata` examples below are for reference only; do NOT run them directly.

## Setup (reference only — bundled scripts handle this automatically)

```bash
# Reference only — actual operations are handled automatically by scripts/*.py
# Fetch registry via JSON-RPC
REGISTRY=$(curl -s -X POST https://api.awp.sh/v2 \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"registry.get","params":{},"id":1}' | jq -r '.result')

# Contract addresses (same on all chains)
AWP_REGISTRY="0x0000F34Ed3594F54faABbCb2Ec45738DDD1c001A"
AWP_TOKEN="0x0000A1050AcF9DEA8af9c2E74f0D7CF43f1000A1"
VE_AWP="0x0000b534C63D78212f1BDCc315165852793A00A8"
AWP_ALLOCATOR="0x0000D6BB5e040E35081b3AaF59DD71b21C9800AA"
AWP_WORKNET="0x00000bfbdEf8533E5F3228c9C846522D906100A7"
DAO_ADDR="0x00006879f79f3Da189b5D0fF6e58ad0127Cc0DA0"
LP_MANAGER="0x00001961b9AcCD86b72DE19Be24FaD6f7c5b00A2"

WALLET_ADDR=$(awp-wallet receive | jq -r '.eoaAddress')
```

## Wallet CLI Reference

### Key Parameters

- `--token {T}` = wallet session token from `awp-wallet unlock --scope transfer`
- `--asset` = token **contract address** (e.g. AWP token addr), NOT a symbol like "AWP"
- Chain defaults to Base (configured in awp-wallet config). `--chain` is a global option if needed.

### Approve Pattern (used by S1, S2)

```bash
# Approve AWP spending — spender varies by action (see each section)
# --asset must be the AWP token contract address
awp-wallet approve --token {T} --asset {awpTokenAddr} --spender {targetAddr} --amount {humanAmount} # -> {"txHash": "0x...", "status": "confirmed"}
```

### Balance Check

```bash
# Check AWP balance in wallet (supplements JSON-RPC staking balance)
awp-wallet balance --token {T} --asset {awpTokenAddr}
```

### EIP-712 Signing (for gasless operations)

```bash
# Sign typed data for gasless binding, unbinding, set-recipient, allocate, deallocate
awp-wallet sign-typed-data --token {T} --data '{...EIP712 JSON...}'
# -> {"signature": "0x...(65 bytes hex, compact r||s||v form)"}
```

---

## S1 · Account System: Bind, Unbind & Delegate

### Check Registration

```json
// JSON-RPC
{"jsonrpc": "2.0", "method": "address.check", "params": {"address": "0x..."}, "id": 1}

// Response
{"jsonrpc": "2.0", "result": {"isRegistered": true, "boundTo": "0x...", "recipient": "0x..."}, "id": 1}
```
> `isRegistered` = `boundTo != 0x0 || recipient != 0x0`.

### Contract Calls — Registration (Optional)

```solidity
// Registration happens implicitly the first time an address calls setRecipient().
// Passing msg.sender as the recipient registers without changing reward routing.
// AWPRegistry has no standalone register() or registerAndStake() entrypoint.
function setRecipient(address recipient)
```

Sponsored

Ads related to AWP Skill and adjacent AI workflows.