← 返回
未分类 Key 中文

Linkdrop Agent CLI

Create and redeem Linkdrop claim links from the command line with strict JSON output on Base, Polygon, Arbitrum, Optimism, and Avalanche.
在命令行创建和兑换 Linkdrop 领币链接,严格 JSON 输出,支持 Base、Polygon、Arbitrum、Optimism 与 Avalanche 网络。
seichris seichris 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 385
下载
💾 0
安装
1
版本
#latest

概述

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_.
  • Unsupported chain: use one of the supported chain names above.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 18:01 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 678 📥 327,591
data-analysis

XiaoHongShu Search MCP

seichris
通过托管的 whatson.red MCP 端点搜索小红书/RED 笔记,获取结构化搜索结果、笔记详情或博客草稿内容。
★ 0 📥 667
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 181,900