← 返回
AI智能 Key 中文

BNB Chain

Basic BNB Chain operations — check balances, send BNB, send BEP-20 tokens.
基础 BNB Chain 操作 — 查询余额、转账 BNB、发送 BEP-20 代币。
clawzai
AI智能 clawhub v0.1.0 1 版本 99668.7 Key: 需要
★ 1
Stars
📥 2,086
下载
💾 109
安装
1
版本
#latest

概述

BNB Chain Skill

Basic operations on BNB Chain (BSC). Check balances and send transactions.

Setup

Requires Node.js and ethers.js:

cd ~/.openclaw/workspace/skills/bnb-chain && npm install ethers --silent

Configuration

Store your private key securely. The skill reads from environment variable:

export BNB_PRIVATE_KEY="0x..."

Or pass it directly to the helper script.

Usage

All operations use the helper script: bnb.js

Check BNB Balance

node bnb.js balance <address>

Example:

node bnb.js balance 0x9787436458A36a9CC72364BaC18ba78fdEf83997

Check BEP-20 Token Balance

node bnb.js token-balance <token_address> <wallet_address>

Example (USDT):

node bnb.js token-balance 0x55d398326f99059fF775485246999027B3197955 0x9787436458A36a9CC72364BaC18ba78fdEf83997

Send BNB

node bnb.js send <to_address> <amount_bnb> [--key <private_key>]

Example:

node bnb.js send 0xRecipient 0.01 --key 0xYourPrivateKey

Send BEP-20 Token

node bnb.js send-token <token_address> <to_address> <amount> [--key <private_key>]

Example (send 10 USDT):

node bnb.js send-token 0x55d398326f99059fF775485246999027B3197955 0xRecipient 10 --key 0xYourPrivateKey

Get Wallet Address from Private Key

node bnb.js address <private_key>

Get Transaction Details

node bnb.js tx <tx_hash>

Common Token Addresses (BSC Mainnet)

TokenAddress
----------------
USDT0x55d398326f99059fF775485246999027B3197955
USDC0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d
BUSD0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56
WBNB0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c

RPC Endpoints

Default: https://bsc-dataseed.binance.org/

Alternatives:

  • https://bsc-dataseed1.binance.org/
  • https://bsc-dataseed2.binance.org/
  • https://bsc-dataseed3.binance.org/
  • https://bsc-dataseed4.binance.org/

Security Notes

  • Never commit private keys to git
  • Use environment variables or secure storage
  • Double-check recipient addresses before sending
  • Start with small test amounts

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-28 18:05 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 709 📥 243,557
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 834 📥 212,822
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,056 📥 796,390