Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task Blockchain

This project is a simple blockchain application using Truffle, Flask and React.

Getting Started

Prerequisites

Make sure you have the following installed:

  • Node.js
  • Truffle
  • Ganache (for local development)

Installation

Clone the repository:

git clone https://github.com/Surafeljava/ts-coin-agent
cd ts-coin-agent

Compile the Smart Contracts

To compile the smart contracts, run:

truffle compile

Deploy the Smart Contracts

To deploy the smart contracts to the network, run:

truffle migrate

To reset and re-deploy on development network, run:

truffle migrate --reset --network development

Run the Frontend Application

Navigate to the frontend directory and start the React app:

cd ai_agent_frontend
npm install
npm start

Run the ai agent

cd ai_agent
python ai_agent_flask.py

Test the ai agent

curl -X POST http://127.0.0.1:5500/process_prompt \
-H "Content-Type: application/json" \
-d '{"prompt": "Send 1 ETH to 0xabc123..."}'

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages