360 Secure SkillHub
360 安全技能中心

Near Subaccount

该 Skill 封装 NEAR CLI,提供创建、列出、删除 NEAR 子账户,以及按 JSON 文件向多个子账户批量分发 NEAR 代币的命令行操作。使用前需安装并配置 NEAR CLI,主账户需有足够余额;删除子账户与转账均为不可逆操作。

分类:自动化
shaiss
shaiss
热度 49.56
最近更新 2026-05-18 11:59:27

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add shaiss/near-subaccount
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
near-subaccount
description
Create, list, delete, and manage NEAR subaccounts with bulk distribution operations.

NEAR Subaccount Manager Skill

Create and manage NEAR subaccounts easily.

Description

This skill provides tools to create, list, and delete NEAR subaccounts. Also includes bulk operations for distributing NEAR tokens to multiple subaccounts.

Features

  • Create subaccounts
  • List all subaccounts under an account
  • Delete subaccounts
  • Bulk distribute NEAR to multiple subaccounts
  • Clean command-line interface

Commands

near-subaccount create <subaccount_name> [master_account]

Create a new subaccount.

Parameters:

  • subaccount_name - Name of the subaccount (without .master.account)
  • master_account - Master account (optional, uses default)

Example:

near-subaccount create wallet myaccount.near
# Creates: wallet.myaccount.near

near-subaccount list [account_id]

List all subaccounts under an account.

Parameters:

  • account_id - Account to list subaccounts for (optional, uses default)

Example:

near-subaccount list myaccount.near

near-subaccount delete <subaccount_id> [master_account]

Delete a subaccount.

Parameters:

  • subaccount_id - Full subaccount ID to delete
  • master_account - Master account (optional, uses default)

near-subaccount distribute <file.json> [amount]

Bulk distribute NEAR from master account to subaccounts listed in a JSON file.

Parameters:

  • file.json - JSON file with subaccount list
  • amount - NEAR amount to send each (default: 0.1)

JSON format:

{
  "subaccounts": [
    "wallet1.myaccount.near",
    "wallet2.myaccount.near",
    "wallet3.myaccount.near"
  ]
}

Configuration

Set your default account:

export NEAR_ACCOUNT="myaccount.near"

Requirements

  • NEAR CLI installed and configured
  • Master account with sufficient balance for creating subaccounts (~0.1 NEAR each)

References