返回顶部
l

linkdrop-agent-cli

Create and redeem Linkdrop claim links from the command line with strict JSON output on Base, Polygon, Arbitrum, Optimism, and Avalanche.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
87
下载量
0
收藏
概述
安装方式
版本历史

linkdrop-agent-cli

When to use - You need to create a funded Linkdrop claim link from a local wallet. - You need to redeem a Linkdrop claim link to a destination address. - You need stdout to be exactly one JSON object for automation. Files in this skill - `linkdrop-agent.js` is the strict JSON CLI entrypoint. - `agentdrop-core.js` contains the Linkdrop and chain logic used by the CLI. - `.env.example` shows the supported runtime configuration. Setup 1. Run `npm install`. 2. Set secrets in your shell or `.env`: - Required: `PRIVATE_KEY`, `LINKDROP_API_KEY` - Recommended for Base: `RPC_URL_BASE` - Optional fallback: `RPC_URL` 3. Keep secrets out of git history. Supported chains - `base` default - `polygon` - `arbitrum` - `optimism` - `avalanche` Send a claimable transfer 1. Native token on Base: - `node linkdrop-agent.js send --amount 0.01 --token native --chain base` 2. ERC20 on Polygon: - `node linkdrop-agent.js send --amount 5 --token 0xTokenAddress --chain polygon` 3. Read these JSON fields from stdout: - `claimUrl` - `transferId` - `depositTx` Claim a transfer 1. Run: - `node linkdrop-agent.js claim --url "https://..." --to 0xRecipient --chain base` 2. Read `redeemTx` from stdout. JSON contract - Success returns `{ ok: true, ... }`. - Failure returns `{ ok: false, error: { code, name, message, details? } }`. - The CLI writes one JSON object to stdout per invocation. Troubleshooting - `Missing PRIVATE_KEY`: set a 32-byte hex private key with `0x` prefix. - `Missing LINKDROP_API_KEY`: set a valid Linkdrop API key with the `zpka_` prefix. - `No RPC URL available`: set `RPC_URL_BASE` for Base or the matching `RPC_URL_<CHAIN>`. - `Unsupported chain`: use one of the supported chain names above.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 linkdrop-agent-cli-1776010332 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 linkdrop-agent-cli-1776010332 技能

通过命令行安装

skillhub install linkdrop-agent-cli-1776010332

下载 Zip 包

⬇ 下载 linkdrop-agent-cli v1.0.0

文件大小: 6.4 KB | 发布时间: 2026-4-13 10:51

v1.0.0 最新 2026-4-13 10:51
Initial ClawHub release

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部