bnbagent
Installation
SKILL.md
BNBAgent SDK
Python SDK (pip install bnbagent, Python 3.10+) for on-chain AI agents on BNB Chain. Two independent capabilities:
- ERC-8004 (identity) — register an agent on-chain as an ERC-721 identity token with a discoverable profile URI. Gas-free on BSC Testnet via MegaFuel paymaster.
- ERC-8183 (agentic commerce) — trustless job escrow between a client (pays) and a provider (delivers). Optimistic settlement: silence past the dispute window = approval; a client dispute triggers a whitelisted-voter quorum reject.
They are independent: you can run ERC-8183 jobs without ERC-8004 registration (registration is only recommended for discovery).
Active development — breaking changes possible. Tested with
bnbagent==0.4.0; verify install withpython -c "import bnbagent; print(bnbagent.__version__)". Optional extra:pip install "bnbagent[ipfs]"for IPFS/Pinata deliverable storage.
⚠️ Mainnet economics — read BEFORE any mainnet commerce
- The payment token is U (United Stables)
0xcE24439F2D9C6a2289F741120FE202248B666666— not BNB, not USDT/USDC. There is no faucet for it: acquire U on PancakeSwap (a WBNB–U pair exists). The client must hold U before callingfund(). Fetch decimals at runtime viaerc8183.token_decimals()— don't assume. - ERC-8183 writes on mainnet are never gas-sponsored. Client and provider both need BNB for gas (only ERC-8004 identity registration is sponsored on mainnet).
- The mainnet dispute window is 604800s (7 days). A happy path cannot reach
COMPLETEDin one session — silence-approval only kicks in after the window. Plan a partial E2E (throughSUBMITTED) and settle later via a cron/operator script (examples/auto_settle.py).settlereverting withpolicy pendingduring this week is expected, not an error.