bnbchain-erc8004-agentMaintain your agent on-chain identity (ERC-8004) on BNB Chain. Register, check status, and manage your agent metadata securely using the BNBAgent SDK.
Install via ClawdBot CLI:
clawdbot install 0xlucasliao/bnbchain-erc8004-agentThis skill enables your agent to register and manage its own on-chain identity on BNB Chain using the ERC-8004 standard.
This skill requires the bnbagent Python SDK.
# Install bnbagent SDK (from test.pypi.org as per release)
pip install --index-url https://test.pypi.org/simple/ \
--extra-index-url https://pypi.org/simple \
bnbagent==0.1.6
# Or using uv (recommended for speed)
uv pip install --index-url https://test.pypi.org/simple/ \
--extra-index-url https://pypi.org/simple \
bnbagent==0.1.6
This skill manages a wallet specifically for your agent's identity.
WALLET_PASSWORD env var or provide it when prompted..bnbagent_state (encrypted). Do not share this file.Create a script (or ask me to create one) to manage your identity.
If you haven't registered on-chain yet:
import os
from bnbagent import ERC8004Agent, EVMWalletProvider, AgentEndpoint
# 1. Setup Wallet & SDK
password = os.getenv("WALLET_PASSWORD", "default-secure-password")
wallet = EVMWalletProvider(password=password)
sdk = ERC8004Agent(wallet_provider=wallet, network="bsc-testnet")
# 2. Define Your Identity
agent_uri = sdk.generate_agent_uri(
name="My Agent Name",
description="I am an autonomous agent running on OpenClaw.",
endpoints=[
AgentEndpoint(
name="activity",
endpoint="https://moltbook.com/u/MyAgentName", # Example: Link to your social profile
version="1.0.0"
)
]
)
# 3. Register on BNB Chain (Gasless via Paymaster)
print("Registering...")
result = sdk.register_agent(agent_uri=agent_uri)
print(f"Success! Agent ID: {result['agentId']}")
print(f"View registered agents: https://testnet.8004scan.io/agents?chain=97")
# Check if you are already registered locally
info = sdk.get_local_agent_info("My Agent Name")
if info:
print(f"I am registered! Agent ID: {info['agent_id']}")
# Get on-chain details
chain_info = sdk.get_agent_info(info['agent_id'])
print(f"On-chain Address: {chain_info['agentAddress']}")
If your endpoints or description change:
local_info = sdk.get_local_agent_info("My Agent Name")
if local_info:
agent_id = local_info['agent_id']
# Generate new URI
new_uri = sdk.generate_agent_uri(
name="My Agent Name",
description="Updated description.",
endpoints=[...],
agent_id=agent_id
)
# Update on-chain
sdk.set_agent_uri(agent_id=agent_id, agent_uri=new_uri)
print("Identity updated successfully.")
Generated Mar 1, 2026
An AI agent that handles customer inquiries for e-commerce platforms. By registering on-chain with ERC-8004, it establishes a verifiable identity that customers can trust. This allows the agent to securely manage customer data and provide authenticated responses through its registered endpoints.
An AI agent that autonomously manages DeFi investments across BNB Chain protocols. The on-chain identity enables transparent tracking of the agent's actions and performance history. Users can verify the agent's credentials and trust its automated trading decisions through the registered endpoints.
An AI agent that monitors and verifies supply chain transactions for manufacturing companies. The ERC-8004 identity provides immutable proof of the agent's authenticity when validating product origins and logistics data. This creates trust in automated supply chain audits and compliance reporting.
An AI agent that moderates user-generated content for social media platforms. The on-chain identity allows platforms to verify the agent's moderation policies and track its decision-making history. This provides transparency in content filtering and appeals processes through verifiable agent actions.
An AI agent that securely processes anonymized patient data for healthcare providers. The ERC-8004 registration establishes a verifiable identity that complies with healthcare regulations. This enables secure, auditable processing of sensitive medical information through authenticated endpoints.
Companies pay a monthly subscription fee to deploy registered AI agents for specific business functions. The on-chain identity provides verifiable service quality and uptime metrics. Revenue comes from tiered subscription plans based on agent capabilities and transaction volume.
The AI agent performs financial or data transactions on behalf of users, taking a small commission on each successful transaction. The ERC-8004 identity builds trust in the agent's reliability for handling sensitive operations. Revenue scales with transaction volume and complexity.
Selling packaged solutions for companies to manage multiple AI agents with verified on-chain identities. This includes identity registration, maintenance, and compliance monitoring services. Revenue comes from implementation fees and ongoing management contracts.
💬 Integration Tip
Start with testnet registration using the gasless paymaster feature to understand the workflow before moving to mainnet. Always secure your wallet password through environment variables rather than hardcoding.
Connect Claude to Clawdbot instantly and keep it connected 24/7. Run after setup to link your subscription, then auto-refreshes tokens forever.
ERC-8004 Trustless Agents - Register, discover, and build reputation for AI agents on Ethereum. Use when registering agents on-chain, querying agent registries, giving/receiving reputation feedback, or interacting with the AI agent trust layer.
Autonomous crypto trading on Base via Bankr. Use for trading tokens, monitoring launches, executing strategies, or managing a trading portfolio. Triggers on "trade", "buy", "sell", "launch", "snipe", "profit", "PnL", "portfolio balance", or any crypto trading task on Base.
Deploy ERC20 tokens on Base using Clanker SDK. Create tokens with built-in Uniswap V4 liquidity pools. Supports Base mainnet and Sepolia testnet. Requires PRIVATE_KEY in config.
Query DeFi portfolio data across 50+ chains via Zapper's GraphQL API. Use when the user wants to check wallet balances, DeFi positions, NFT holdings, token prices, or transaction history. Supports Base, Ethereum, Polygon, Arbitrum, Optimism, and more. Requires ZAPPER_API_KEY.
Interact with Solana blockchain via Helius APIs. Create/manage wallets, check balances (SOL + tokens), send transactions, swap tokens via Jupiter, and monitor addresses. Use for any Solana blockchain operation, crypto wallet management, token transfers, DeFi swaps, or portfolio tracking.