Skip to content

goldblog/Crypto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crypto Plugin App

This app verifies cryptocurrency tokens on-chain and fetches live market prices from OKX.

Features

  • Verify ERC-20 token contract on Polygon
  • Fetch live price data from OKX API
  • Simple plugin UI (React)
  • Dockerized setup with backend + frontend

Run locally

git clone https://github.com/yourname/crypto-plugin-app.git
cd crypto-plugin-app
docker-compose up --build

Backend runs on http://localhost:4000
Frontend runs on http://localhost:3000

Example usage

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"

Environment variables

Copy .env.example.env in backend and set:

  • POLYGON_RPC – Polygon RPC URL
  • OKX_API_KEY, OKX_API_SECRET, OKX_PASSPHRASE – (only required for private OKX API actions)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published