搜索

PythonReactSEOPDF
OpenClaw

bnb-nft

NFT operations on BNB Chain — get NFT metadata, check ownership, list NFTs by owner, transfer ERC-721 tokens, get collection info. Use for any NFT-related tasks on BSC.

clawzai0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install clawzai/bnb-nft

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

BNB Chain NFT Skill

ERC-721 NFT operations on BNB Chain (BSC).

Setup

Requires Node.js and ethers.js:

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

Configuration

For write operations (transfer, approve), set private key:

export BNB_PRIVATE_KEY="0x..."

Or pass with --key flag.

Usage

All operations use: nft.js

Get Collection Info
node nft.js collection <contract_address>

Returns name, symbol, total supply (if available).

Get NFT Metadata
node nft.js metadata <contract_address> <token_id>

Returns owner, tokenURI, and fetched metadata (if URI is HTTP).

Check NFT Owner
node nft.js owner <contract_address> <token_id>
List NFTs Owned by Address
node nft.js owned <contract_address> <wallet_address> [--limit 100]

Scans token IDs to find NFTs owned by wallet. Use --limit to cap the scan range.

Get Wallet's NFT Balance
node nft.js balance <contract_address> <wallet_address>

Returns count of NFTs owned in collection.

Transfer NFT
node nft.js transfer <contract_address> <to_address> <token_id> [--key <private_key>]
Approve NFT for Transfer
node nft.js approve <contract_address> <spender_address> <token_id> [--key <private_key>]
Set Approval for All
node nft.js approve-all <contract_address> <operator_address> <true|false> [--key <private_key>]
Check if Approved
node nft.js is-approved <contract_address> <token_id> <spender_address>

Popular NFT Collections (BSC Mainnet)

Collection Address
Pancake Squad 0x0a8901b0E25DEb55A87524f0cC164E9644020EBA
Pancake Bunnies 0xDf7952B35f24aCF7fC0487D01c8d5690a60DBa07
BakerySwap 0x5d0915E32b1fb1144f27B87C9f65AC3f661C9e6D

Security Notes

  • Never commit private keys to git
  • Always verify contract addresses before interacting
  • Use testnet for...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/clawzai/bnb-nft
Version
—
Commit
e17dcfb9646ad204f8212ab8e4894cc1ab57cbd1
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# BNB Chain NFT Skill

ERC-721 NFT operations on BNB Chain (BSC).

## Setup

Requires Node.js and ethers.js:

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

## Configuration

For write operations (transfer, approve), set private key:

```bash
export BNB_PRIVATE_KEY="0x..."
```

Or pass with `--key` flag.

## Usage

All operations use: `nft.js`

### Get Collection Info

```bash
node nft.js collection <contract_address>
```

Returns name, symbol, total supply (if available).

### Get NFT Metadata

```bash
node nft.js metadata <contract_address> <token_id>
```

Returns owner, tokenURI, and fetched metadata (if URI is HTTP).

### Check NFT Owner

```bash
node nft.js owner <contract_address> <token_id>
```

### List NFTs Owned by Address

```bash
node nft.js owned <contract_address> <wallet_address> [--limit 100]
```

Scans token IDs to find NFTs owned by wallet. Use `--limit` to cap the scan range.

### Get Wallet's NFT Balance

```bash
node nft.js balance <contract_address> <wallet_address>
```

Returns count of NFTs owned in collection.

### Transfer NFT

```bash
node nft.js transfer <contract_address> <to_address> <token_id> [--key <private_key>]
```

### Approve NFT for Transfer

```bash
node nft.js approve <contract_address> <spender_address> <token_id> [--key <private_key>]
```

### Set Approval for All

```bash
node nft.js approve-all <contract_address> <operator_address> <true|false> [--key <private_key>]
```

### Check if Approved

```bash
node nft.js is-approved <contract_address> <token_id> <spender_address>
```

## Popular NFT Collections (BSC Mainnet)

| Collection | Address |
|------------|---------|
| Pancake Squad | `0x0a8901b0E25DEb55A87524f0cC164E9644020EBA` |
| Pancake Bunnies | `0xDf7952B35f24aCF7fC0487D01c8d5690a60DBa07` |
| BakerySwap | `0x5d0915E32b1fb1144f27B87C9f65AC3f661C9e6D` |

## Security Notes

- **Never commit private keys** to git
- Always verify contract addresses before interacting
- Use testnet for...

相关技能

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

0protocol

0isone

Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.

OpenClaw

0x0-messenger

eijiac24

Send and receive P2P messages using disposable numbers and PINs. No servers, no accounts. Use for human notifications, approval flows, and agent-to-agent communication.