Skip to content

Fast and secure GraphQL API for aggregated Opera block chain information.

License

Notifications You must be signed in to change notification settings

ftmdapp/fantom-api-graphql

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

180 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fantom GraphQL API Server

Go Report Card

High performance API server for Fantom powered blockchain network.

Building the source

Building apiserver requires a Go (version 1.13 or later). You can install it using your favourite package manager. Once the dependencies are installed, run

go build -o ./build/apiserver ./cmd/apiserver

The build output is build/apiserver executable.

You don't need to clone the project into $GOPATH, due to use of Go Modules you can use any location.

Running the API server

To run the API Server you need access to a RPC interface of a full Lachesis node. Please follow Lachesis instructions to build and run the node. Alternatively you can obtain access to a remotely running instance of Lachesis.

We recommend using local IPC channel for communication between a Lachesis node and the API Server for performance and security reasons. Please consider security implications of opening Lachesis RPC to outside access, especially if you enable "personal" commands on your node while keeping your account keys in the Lachesis key store.

Persistent data are stored in a MongoDB database. Going through the instalation and configuration process of MongoDB is out of scope here, please consult MongoDB manual to install and configure appropriate MongoDB environment for your deployment of the API server.

About

Fast and secure GraphQL API for aggregated Opera block chain information.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.8%
  • Other 0.2%