This app verifies cryptocurrency tokens on-chain and fetches live market prices from OKX.
- Verify ERC-20 token contract on Polygon
- Fetch live price data from OKX API
- Simple plugin UI (React)
- Dockerized setup with backend + frontend
git clone https://github.com/yourname/crypto-plugin-app.git
cd crypto-plugin-app
docker-compose up --buildBackend runs on http://localhost:4000
Frontend runs on http://localhost:3000
Verify a token:
curl -X POST http://localhost:4000/api/verify-token -H "Content-Type: application/json" -d '{"address":"0x25a2db8659707766b3452ab38bCeA593C7E6B559"}'Fetch price (replace with valid instId):
curl "http://localhost:4000/api/price/POL-USDT"Copy .env.example → .env in backend and set:
POLYGON_RPC– Polygon RPC URLOKX_API_KEY,OKX_API_SECRET,OKX_PASSPHRASE– (only required for private OKX API actions)