Search

PythonReactSEOPDF
OpenClaw

bnb-chain

Basic BNB Chain operations — check balances, send BNB, send BEP-20 tokens.

clawzai0 source installs☆ 0 Repository starsv0.1.0

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install clawzai/bnb-chain

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

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)

Token Address
USDT 0x55d398326f99059fF775485246999027B3197955
USDC 0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d
BUSD 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56
WBNB 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c

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 N...

Source information

Source
github
Repository
openclaw/skills
Path
skills/clawzai/bnb-chain
Version
0.1.0
Commit
3377f5168ba30c606be6225e046882ad5b3a1176
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# BNB Chain Skill

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

## Setup

Requires Node.js and ethers.js:

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

## Configuration

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

```bash
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

```bash
node bnb.js balance <address>
```

Example:
```bash
node bnb.js balance 0x9787436458A36a9CC72364BaC18ba78fdEf83997
```

### Check BEP-20 Token Balance

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

Example (USDT):
```bash
node bnb.js token-balance 0x55d398326f99059fF775485246999027B3197955 0x9787436458A36a9CC72364BaC18ba78fdEf83997
```

### Send BNB

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

Example:
```bash
node bnb.js send 0xRecipient 0.01 --key 0xYourPrivateKey
```

### Send BEP-20 Token

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

Example (send 10 USDT):
```bash
node bnb.js send-token 0x55d398326f99059fF775485246999027B3197955 0xRecipient 10 --key 0xYourPrivateKey
```

### Get Wallet Address from Private Key

```bash
node bnb.js address <private_key>
```

### Get Transaction Details

```bash
node bnb.js tx <tx_hash>
```

## Common Token Addresses (BSC Mainnet)

| Token | Address |
|-------|---------|
| USDT | `0x55d398326f99059fF775485246999027B3197955` |
| USDC | `0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d` |
| BUSD | `0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56` |
| WBNB | `0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c` |

## 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 N...

Related skills

OpenClaw

13-Day Sprint Method

galizki

Productivity system based on Maya calendar with 13 natural tones for project management and personal development

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.