← All skills
Tencent SkillHub Β· AI

Polygon Agents SDK

Complete Polygon agent toolkit. Session-based smart contract wallets (Sequence), token ops (send/swap/bridge/deposit via Trails), ERC-8004 on-chain identity...

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Complete Polygon agent toolkit. Session-based smart contract wallets (Sequence), token ops (send/swap/bridge/deposit via Trails), ERC-8004 on-chain identity...

⬇ 0 downloads β˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
QUICKSTART.md, SKILL.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 14 sections Open source page

Prerequisites

Node.js 20+ Install globally: npm install -g github:0xPolygon/polygon-agent-kit Entry point: polygon-agent <command> Storage: ~/.polygon-agent/ (AES-256-GCM encrypted)

Architecture

WalletCreated byPurposeFund?EOAsetupAuth with Sequence BuilderNOEcosystem Walletwallet createPrimary spending walletYES

Required

VariableWhenSEQUENCE_PROJECT_ACCESS_KEYWallet creation, swapsSEQUENCE_INDEXER_ACCESS_KEYBalance checks

Optional

VariableDefaultSEQUENCE_ECOSYSTEM_CONNECTOR_URLhttps://agentconnect.polygon.technology/SEQUENCE_DAPP_ORIGINSame as connector URL originTRAILS_API_KEYFalls back to SEQUENCE_PROJECT_ACCESS_KEYTRAILS_TOKEN_MAP_JSONToken-directory lookupPOLYGON_AGENT_DEBUG_FETCHOff β€” logs HTTP to ~/.polygon-agent/fetch-debug.logPOLYGON_AGENT_DEBUG_FEEOff β€” dumps fee options to stderr

Complete Setup Flow

# Phase 1: Setup (creates EOA + Sequence project, returns access key) node cli/polygon-agent.mjs setup --name "MyAgent" # β†’ save privateKey (not shown again), eoaAddress, accessKey # Phase 2: Create ecosystem wallet (auto-waits for browser approval) export SEQUENCE_PROJECT_ACCESS_KEY=<accessKey> node cli/polygon-agent.mjs wallet create --usdc-limit 100 --native-limit 5 # Phase 3: Fund wallet node cli/polygon-agent.mjs fund # β†’ reads walletAddress from session, builds Trails widget URL with toAddress=<walletAddress> # β†’ ALWAYS run this command to get the URL β€” never construct it manually or hardcode any address # β†’ send the returned `fundingUrl` to the user; `walletAddress` in the output confirms the recipient # Phase 4: Verify export SEQUENCE_INDEXER_ACCESS_KEY=<indexerKey> node cli/polygon-agent.mjs balances # Phase 5: Register agent on-chain (ERC-8004, Polygon mainnet) node cli/polygon-agent.mjs agent register --name "MyAgent" --broadcast # β†’ mints ERC-721 NFT, emits agentId in Registered event # β†’ use agentId for reputation queries and feedback

Setup

polygon-agent setup --name <name> [--force]

Wallet

polygon-agent wallet create [--name <n>] [--chain polygon] [--timeout <sec>] [--no-wait] [--native-limit <amt>] [--usdc-limit <amt>] [--usdt-limit <amt>] [--token-limit <SYM:amt>] # repeatable [--usdc-to <addr> --usdc-amount <amt>] # one-off scoped transfer [--contract <addr>] # whitelist contract (repeatable) polygon-agent wallet import --ciphertext '<blob>|@<file>' [--name <n>] [--rid <rid>] polygon-agent wallet list polygon-agent wallet address [--name <n>] polygon-agent wallet remove [--name <n>]

Operations

polygon-agent balances [--wallet <n>] [--chain <chain>] polygon-agent send --to <addr> --amount <num> [--symbol <SYM>] [--broadcast] polygon-agent send-native --to <addr> --amount <num> [--broadcast] [--direct] polygon-agent send-token --symbol <SYM> --to <addr> --amount <num> [--broadcast] polygon-agent swap --from <SYM> --to <SYM> --amount <num> [--to-chain <chain>] [--slippage <num>] [--broadcast] polygon-agent deposit --asset <SYM> --amount <num> [--protocol aave|morpho] [--broadcast] polygon-agent fund [--wallet <n>] [--token <addr>] polygon-agent x402-pay --url <url> --wallet <n> [--method GET] [--body <str>] [--header Key:Value]

Agent (ERC-8004)

polygon-agent agent register --name <n> [--agent-uri <uri>] [--metadata <k=v,k=v>] [--broadcast] polygon-agent agent wallet --agent-id <id> polygon-agent agent metadata --agent-id <id> --key <key> polygon-agent agent reputation --agent-id <id> [--tag1 <tag>] polygon-agent agent reviews --agent-id <id> polygon-agent agent feedback --agent-id <id> --value <score> [--tag1 <t>] [--tag2 <t>] [--endpoint <e>] [--broadcast] ERC-8004 contracts (Polygon mainnet): IdentityRegistry: 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 ReputationRegistry: 0x8004BAa17C55a88189AE136b182e5fdA19dE9b63

Key Behaviors

Dry-run by default β€” all write commands require --broadcast to execute Smart defaults β€” --wallet main, --chain polygon, auto-wait on wallet create Fee preference β€” auto-selects USDC over native POL when both available fund β€” reads walletAddress from the wallet session and sets it as toAddress in the Trails widget URL. Always run polygon-agent fund to get the correct URL β€” never construct it manually or hardcode any address. The returned JSON contains fundingUrl and walletAddress so you can confirm the pre-filled recipient before sharing. deposit β€” picks highest-TVL pool via Trails getEarnPools. If session rejects, re-create wallet with --contract <depositAddress> x402-pay β€” probes endpoint for 402, smart wallet funds builder EOA with exact token amount, EOA signs EIP-3009 payment. Chain auto-detected from 402 response send-native --direct β€” bypasses ValueForwarder contract for direct EOA transfer Session permissions β€” without --usdc-limit etc., session gets bare-bones defaults and may not transact

CRITICAL: Wallet Approval URL

When wallet create outputs a URL in the url or approvalUrl field, you MUST send the COMPLETE, UNTRUNCATED URL to the user. The URL contains cryptographic parameters (public key, callback token) that are required for session approval. If any part is cut off, the approval will fail. Do NOT shorten, summarize, or add ... to the URL Do NOT split the URL across multiple messages Output the raw URL exactly as returned by the CLI

Callback Modes

The wallet create command automatically starts a local HTTP server and opens a Cloudflare Quick Tunnel (*.trycloudflare.com) β€” no account or token required. The cloudflared binary is auto-downloaded to ~/.polygon-agent/bin/cloudflared on first use if not already installed. The connector UI POSTs the encrypted session back through the tunnel regardless of where the agent is running. The tunnel and server are torn down automatically once the session is received. Timing: The approvalUrl is only valid while the CLI process is running. Open it immediately and complete wallet approval within the timeout window (default 300s). Never reuse a URL from a previous run β€” the tunnel is torn down when the CLI exits. Manual fallback (if cloudflared is unavailable): The CLI omits callbackUrl so the connector UI displays the encrypted blob in the browser. The CLI then prompts: After approving in the browser, the encrypted blob will be shown. Paste it below and press Enter: > <paste blob here> The blob is also saved to /tmp/polygon-session-<rid>.txt for reference. To import later: polygon-agent wallet import --ciphertext @/tmp/polygon-session-<rid>.txt

Troubleshooting

IssueFixBuilder configured alreadyAdd --forceMissing SEQUENCE_PROJECT_ACCESS_KEYRun setup firstMissing walletwallet list, re-run wallet createSession expiredRe-run wallet create (24h expiry)Fee option errorsSet POLYGON_AGENT_DEBUG_FEE=1, ensure wallet has fundsTimed out waiting for callbackAdd --timeout 600callbackMode: manual (no tunnel)cloudflared unavailable β€” paste blob from browser when prompted; blob saved to /tmp/polygon-session-<rid>.txt404 on *.trycloudflare.comCLI timed out and tunnel is gone β€” re-run wallet create, open the new approvalUrl immediately"Auto-send failed" in browserCopy the ciphertext shown below that message; run wallet import --ciphertext '<blob>'Deposit session rejectedRe-create wallet with --contract <depositAddress>Wrong recipient in Trails widgetRun polygon-agent fund (do not construct the URL manually); walletAddress in the output confirms the pre-filled toAddress

File Structure

~/.polygon-agent/ β”œβ”€β”€ .encryption-key # AES-256-GCM key (auto-generated, 0600) β”œβ”€β”€ builder.json # EOA privateKey (encrypted), eoaAddress, accessKey, projectId β”œβ”€β”€ wallets/<name>.json # walletAddress, session, chainId, chain └── requests/<rid>.json # Pending wallet creation requests

Category context

Agent frameworks, memory systems, reasoning layers, and model-native orchestration.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
2 Docs
  • SKILL.md Primary doc
  • QUICKSTART.md Docs