360 Secure SkillHub
360 安全技能中心

Near Subaccount

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

shaiss
shaiss
热度 64.74
最近更新 2026-05-18 11:59:27
分类:自动化依赖:代码执行 / 读写文件应用场景:自动化脚本 / 工作流 / 财务

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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