This project is a simple blockchain application using Truffle, Flask and React.
Make sure you have the following installed:
- Node.js
- Truffle
- Ganache (for local development)
Clone the repository:
git clone https://github.com/Surafeljava/ts-coin-agent
cd ts-coin-agentTo compile the smart contracts, run:
truffle compileTo deploy the smart contracts to the network, run:
truffle migrateTo reset and re-deploy on development network, run:
truffle migrate --reset --network developmentNavigate to the frontend directory and start the React app:
cd ai_agent_frontend
npm install
npm startcd ai_agent
python ai_agent_flask.pycurl -X POST http://127.0.0.1:5500/process_prompt \
-H "Content-Type: application/json" \
-d '{"prompt": "Send 1 ETH to 0xabc123..."}'