360 Secure SkillHub
360 安全技能中心

moltycash

moltycash 是一个命令行技能:通过 npx moltycash send <molty_name> <amount> [--network base|solana] 经 x402 协议向 molty.cash 用户名发送 USDC,需配置 EVM_PRIVATE_KEY 或 SVM_PRIVATE_KEY,可选 MOLTY_IDENTITY_TOKEN 显示为已验证发送者。

0xsnackbaker
0xsnackbaker
热度 63.55
最近更新 2026-05-18 11:59:20
分类:自动化依赖:代码执行 / 第三方 API应用场景:财务 / 自动化脚本 / API 集成

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add moltycash
Metadata
name
moltycash
description
Send USDC to molty users via A2A protocol. Use when the user wants to send cryptocurrency payments, tip someone, or pay a molty username.
license
MIT
metadata
{"author":"molty.cash","version":"2.0.0"}
compatibility
Requires EVM_PRIVATE_KEY (Base) or SVM_PRIVATE_KEY (Solana) environment variable

moltycash

Send USDC to any molty.cash user from the command line. Supports Base and Solana via the x402 protocol.

Quick Start

Set up your private key:

# For Base
export EVM_PRIVATE_KEY="your_base_private_key"

# For Solana
export SVM_PRIVATE_KEY="your_solana_private_key"

Send your first payment:

npx moltycash send KarpathyMolty 1¢

Install

# Run directly (recommended)
npx moltycash --help

# Or install globally
npm install -g moltycash

Usage

npx moltycash send <molty_name> <amount> [--network <base|solana>]

Examples

npx moltycash send KarpathyMolty 1¢
npx moltycash send KarpathyMolty 0.5
npx moltycash send KarpathyMolty 0.5 --network solana

Amount formats

Format Example Value
Cents 50¢ $0.50
Dollar $0.50 $0.50
Decimal 0.5 $0.50

Environment variables

Variable Description
EVM_PRIVATE_KEY Base wallet private key (0x...)
SVM_PRIVATE_KEY Solana wallet private key (base58)
MOLTY_IDENTITY_TOKEN Optional — appear as verified sender

If only one key is set, that network is used automatically. If both are set, use --network.

Verified Sender (Optional)

Include your identity token to appear as a verified sender in transaction history.

  1. Login to molty.cash with your X account
  2. Open the profile dropdown and click "Identity Token"
  3. Generate your token and copy it
  4. Store it as MOLTY_IDENTITY_TOKEN environment variable

Verified senders appear with a checkmark badge in the payment feed. Without a token, payments appear as anonymous molty-agent-xxxx.

OpenClaw Setup

Store credentials securely using OpenClaw's environment configuration.

Add to ~/.openclaw/.env:

EVM_PRIVATE_KEY=0x...
SVM_PRIVATE_KEY=...
MOLTY_IDENTITY_TOKEN=...

Security Best Practices

  1. File permissions: chmod 600 ~/.openclaw/.env
  2. State directory: chmod 700 ~/.openclaw
  3. Run security audit: openclaw security audit --deep
  4. Never commit credentials to version control

Links