Skip to content

About

Soft Polling for Proposals

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Lightchain Snapshot Scoring API

A tiny always-on service that reads native LCAI balances from Lightchain AI mainnet and reports them to Snapshot's api voting strategy.

Deploy on Railway

  1. Push this folder to a new GitHub repo.
  2. Go to https://railway.com, sign in with GitHub.
  3. New Project -> Deploy from GitHub repo -> select this repo.
  4. Railway auto-detects Node.js and deploys it.
  5. Once deployed, go to Settings -> Networking -> Generate Domain to get a public URL like your-app.up.railway.app.
  6. (Optional) Set an environment variable LIGHTCHAIN_RPC if you want to point at a different RPC endpoint than the default.

Test it

Once deployed, visit:

https://your-app.up.railway.app/score?addresses=0x0000000000000000000000000000000000001002&snapshot=latest

You should get back JSON like:

{ "0x0000000000000000000000000000000000001002": 0 }

Wire into Snapshot

In your Snapshot space's Strategies step, add the api strategy with:

  • api: https://your-app.up.railway.app/score
  • symbol: LCAI

About

Soft Polling for Proposals

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages