BNB Chain for Openclaw

A comprehensive tool for performing core Binance Smart Chain operations including balance inquiries and token transfers.

clawzai
v0.1.0
Jan 31, 2026
1
2.6k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install bnb-chain

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install bnb-chain using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is BNB Chain?

The BNB Chain skill is a specialized utility designed for the ecosystem of Openclaw Skills to facilitate seamless interaction with the Binance Smart Chain (BSC). It enables users to perform essential on-chain tasks such as checking native BNB balances, querying BEP-20 token holdings, and executing secure transfers directly from the command line. By leveraging the ethers.js library, this skill provides a robust and developer-friendly interface for blockchain management.

Built to integrate into automated workflows, this skill simplifies the complexities of blockchain transactions. Whether you are managing a personal wallet or building automated financial triggers, this addition to your Openclaw Skills library ensures high performance and reliability using standard RPC endpoints.

BNB Chain Use Cases

  • Monitoring wallet balances for BNB and popular stablecoins like USDT or USDC.
  • Automating programmatic payments and transfers of BEP-20 tokens.
  • Auditing transaction statuses and details using transaction hashes.
  • Integrating blockchain financial data into larger Openclaw Skills automation scripts.
  • Recovering public wallet addresses from private keys for configuration purposes.

How BNB Chain Works

  1. The skill connects to the Binance Smart Chain via a configured RPC endpoint, such as the default Binance dataseed.
  2. Commands are issued through the bnb.js helper script, which interfaces with the BSC network.
  3. For read-only operations, the skill queries the blockchain and returns human-readable balance or transaction data.
  4. For write operations, the skill signs transactions using a securely provided private key before broadcasting them to the network.
  5. The internal logic handles decimal conversion and BEP-20 contract interactions to ensure transaction accuracy.

BNB Chain Setup

To get started with this skill in your Openclaw Skills environment, ensure you have Node.js installed and follow these steps:

# Navigate to the skill directory and install dependencies
cd ~/.openclaw/workspace/skills/bnb-chain && npm install ethers --silent

# Configure your private key as an environment variable
export BNB_PRIVATE_KEY="0xyour_private_key_here"

BNB Chain Data Schema & Taxonomy

The skill utilizes a structured approach to manage blockchain data and configurations within Openclaw Skills:

Feature Description
Helper Script bnb.js serves as the primary entry point for all CLI commands.
Auth Uses BNB_PRIVATE_KEY environment variable for secure transaction signing.
RPC Endpoints Defaults to https://bsc-dataseed.binance.org/ with multiple failover options.
Constants Pre-configured with major BEP-20 addresses for USDT, USDC, BUSD, and WBNB.

BNB Chain Advanced Features

  • Support for any custom BEP-20 token by providing its contract address.
  • Flexible authentication allowing private keys to be passed via environment variables or CLI flags.
  • Robust error handling for network connectivity and transaction failures.
  • Capability to fetch comprehensive transaction metadata beyond simple confirmation.
  • Designed for modularity, allowing it to act as a financial layer for other Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins node
Github Stars: 0
forks: 0

Featured*