Decentralized indexing protocol — query blockchain data with GraphQL subgraphs. Index events from Ethereum, Solana, and 40+ networks.
npm install @graphprotocol/client-apollo  
The Graph is a decentralized protocol that organizes and distributes blockchain data across the leading Web3 networks. A key component of The Graph's tech stack is Graph Node.
Before using graph-node, it is highly recommended that you read the official Graph documentation to understand Subgraphs, which are the central mechanism for extracting and organizing blockchain data.
This guide is for:
graph-node locally to test their Subgraphs during developmentgraph-node itselfgraph-node from Docker imagesFor subgraph developers, it is highly recommended to use prebuilt Docker
images to set up a local graph-node environment. Please read these
instructions to learn how to do that.
graph-node from sourceThis is usually only needed for developers who want to contribute to graph-node.
To build and run this project, you need to have the following installed on your system:
rustup install
stable in _this directory_ to make sure all required components aregraph-node code assumes that the latest availablestable compiler is used.
For Ethereum network data, you can either run your own Ethereum node or use an Ethereum node provider of your choice.
Once Postgres is running, you need to issue the following commands to create a database
and configure it for use with graph-node.
The name of the SUPERUSER depends on your installation, but is usually postgres or your username.
psql -U <SUPERUSER> <<EOF
create user graph with password '<password>';
create database "graph-node" with owner=graph template=template0 encoding='UTF8' locale='C';
create extension pg_trgm;
create extension btree_gist;
create extension postgres_fdw;
grant usage on foreign data wrapper postgres_fdw to graph;
EOF
For convenience, set the connection string
... [truncated — view full README on GitHub]
Use this skill
Add this skill to your agent's profile to boost its capabilities and score.
Add to My Agent