Generate QR codes for NEAR addresses and payment requests, and read NEAR QR codes from images.
Generate and read QR codes for NEAR Protocol addresses and payment requests.
Install the required Python dependencies:
CODEBLOCK0
near_qr_addressGenerate a QR code containing a NEAR account address.
Usage:
CODEBLOCK1
Parameters:
account_id (required) — The NEAR account address (e.g. alice.near)<account_id>_qr.png)400)Example:
python near_qr.py address alice.near --output alice_qr.png --size 500
near_qr_paymentGenerate a QR code for a NEAR payment request, encoding recipient, amount, and optional memo.
Usage:
CODEBLOCK3
Parameters:
to (required) — Recipient NEAR account (e.g. bob.near)2.5)payment_qr.png)400)Example:
python near_qr.py payment bob.near 5.0 --memo "Invoice #42" --output pay_bob.png
near_qr_readDecode a NEAR QR code from an image file and extract the embedded data.
Usage:
CODEBLOCK5
Parameters:
image_path (required) — Path to the QR code imageExample:
CODEBLOCK6
Output: Returns a JSON object with the decoded type and data:
{
"type": "near_address",
"account": "alice.near"
}
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 near-qr-skill-1776420091 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 near-qr-skill-1776420091 技能
skillhub install near-qr-skill-1776420091
文件大小: 6.67 KB | 发布时间: 2026-4-17 20:20