Skip to content

abtestingalpha/explorer-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

synapse-explorer-api

GraphQL API to query synapse bridge transactions.

This service is simply an API that pulls in data from the database populated by the indexer service.

A sample query for the API is shown below. Refer to GraphQL docs on the API endpoint for a complete API and type details.

query {
  bridgeTransactions(
    address: "0xa89284b83afb5974f4798dc92ca4e987ed855f73d56a859dfc5a7e99d64a5eff"
  ) {
      kappa
  }
}

Hot-Code Reloading in Local dev

npm install -g nodemon

Local setup

  • npm install
  • Add MONGO_URI and REDIS_URI in the .env file
    • If you are a contributor, reach out to the owner of these repos for Mongo and Redis URIs for testing. If not, the easiest way is to run these locally using docker
      • docker run -p 27017:27017 mongo
      • docker run -p 6379:6379 redis
  • npm start

About

Synapse Explorer GraphQL API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%