Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 868 Bytes

README.md

File metadata and controls

35 lines (20 loc) · 868 Bytes

Subgraph for the Skale Network

Indexed data on the Validators, Nodes, Stakes, and Delegators that constitute the Skale Network

To Run Locally

To run the subgraph locally you need to run the graph node locally and connect to a mainnet node. This subgraph has been developed using ghe Alchemy API serice.

Configure the Ethereum Mainnet node

in package.json replace NODE_ENDPOINT with your mainnet rpc endpoint

Connect To a Node

Fork Mainnet locally yarn fork-mainnet

OR

Run Directly against a Node

Set the endpoint in the .env file

Run the Graph Node

docker-compose up

Deploy the Subgraph

yarn

yarn prepare:mainnet

yarn build

yarn create-local

yarn deploy-local

If successful the subgraph will be available to query at http://127.0.0.1:8000/subgraphs/name/Ministry-Of-Decentralization/skale_manager_subgraph