← 返回
内容创作

Near Qr Skill

Generate QR codes for NEAR addresses and payment requests, and read NEAR QR codes from images.
生成NEAR地址和支付请求的二维码,并从图片中读取NEAR二维码。
ussyalfaks
内容创作 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 1,077
下载
💾 30
安装
1
版本
#latest

概述

NEAR QR Code Skill

Generate and read QR codes for NEAR Protocol addresses and payment requests.

Setup

Install the required Python dependencies:

pip install -r requirements.txt

Commands

1. Generate Address QR — near_qr_address

Generate a QR code containing a NEAR account address.

Usage:

python near_qr.py address <account_id> [--output <path>] [--size <pixels>]

Parameters:

  • account_id (required) — The NEAR account address (e.g. alice.near)
  • --output — Output file path (default: _qr.png)
  • --size — QR image size in pixels (default: 400)

Example:

python near_qr.py address alice.near --output alice_qr.png --size 500

2. Generate Payment QR — near_qr_payment

Generate a QR code for a NEAR payment request, encoding recipient, amount, and optional memo.

Usage:

python near_qr.py payment <to> <amount> [--memo <text>] [--output <path>] [--size <pixels>]

Parameters:

  • to (required) — Recipient NEAR account (e.g. bob.near)
  • amount (required) — Amount of NEAR to request (e.g. 2.5)
  • --memo — Optional memo or reference note
  • --output — Output file path (default: payment_qr.png)
  • --size — QR image size in pixels (default: 400)

Example:

python near_qr.py payment bob.near 5.0 --memo "Invoice #42" --output pay_bob.png

3. Read QR Code — near_qr_read

Decode a NEAR QR code from an image file and extract the embedded data.

Usage:

python near_qr.py read <image_path>

Parameters:

  • image_path (required) — Path to the QR code image

Example:

python near_qr.py read alice_qr.png

Output: Returns a JSON object with the decoded type and data:

{
  "type": "near_address",
  "account": "alice.near"
}

or for payment QR codes:

{
  "type": "near_payment",
  "to": "bob.near",
  "amount": "5.0",
  "memo": "Invoice #42"
}

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 04:36 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,173
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 199,664
content-creation

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 41,049