A tiny always-on service that reads native LCAI balances from Lightchain AI
mainnet and reports them to Snapshot's api voting strategy.
- Push this folder to a new GitHub repo.
- Go to https://railway.com, sign in with GitHub.
- New Project -> Deploy from GitHub repo -> select this repo.
- Railway auto-detects Node.js and deploys it.
- Once deployed, go to Settings -> Networking -> Generate Domain to get a
public URL like
your-app.up.railway.app. - (Optional) Set an environment variable
LIGHTCHAIN_RPCif you want to point at a different RPC endpoint than the default.
Once deployed, visit:
https://your-app.up.railway.app/score?addresses=0x0000000000000000000000000000000000001002&snapshot=latest
You should get back JSON like:
{ "0x0000000000000000000000000000000000001002": 0 }In your Snapshot space's Strategies step, add the api strategy with:
api:https://your-app.up.railway.app/scoresymbol:LCAI