This project converts the Ethereum fraud detection model into a FastAPI-based API, allowing seamless communication with the Chrome extension. The API provides real-time fraud risk assessment for Ethereum addresses.
I wrapped the existing fraud detection model in a FastAPI application. Here's a quick rundown:
- The model is loaded when the API starts up.
- Endpoints are set up to accept Ethereum addresses.
- When a request comes in, the API processes the address through our model.
- The result is returned as a JSON response.
This setup lets the Chrome extension quickly check addresses without needing to run the full model locally.