This example demonstrates an agent setup as a terminal style chatbot with access to the full set of BNBChain Agentkit actions.
- "Transfer a portion of your BNB to a random address"
- "What is the price of BNB?"
- "Deploy an NFT that will go super viral!"
- "Deploy an BEP-20 token with total supply 1 billion"
- Python 3.12+
- Uv for package management and tooling
- OpenAI API Key
Before using the example, ensure that you have the correct version of Python installed. The example requires Python 3.12 or higher. You can check your Python version by running:
python --versionuv venv --python 3.12
source .venv/bin/activate
uv sync- Ensure the following ENV Vars are set:
- PRIVATE_KEY
- BSC_PROVIDER_URL
- OPBNB_PROVIDER_URL
- OPENAI_API_KEY
- BSCSCAN_API_KEY (optional)
uv run chatbot.py