💻Deploy a subgraph on the DappLooker custom node

🚀 Quickstart

Learn how to deploy your subgraph using DappLooker's Managed Graph Node.

DappLooker enables web3 developers to deploy subgraphs to DappLooker's Managed Graph Node.

  • This service is currently offered for free during an initial learning period.

  • A DappLooker API key is required, but usage of your Degenchain subgraph will not count towards DappLooker API credits.

  • After the learning period, there may be charges to cover our costs of providing this service, especially for high volume usage.

Prerequisites

Step 1: Create Subgraph

First, create the subgraph that you want to deploy on the DappLooker Graph Node by providing your DappLooker API key and the name for your subgraph. Update the following command in the package.json file of your subgraph in place of the create-local command:

graph create --node https://graph-api.dapplooker.com/deploy/ <SUBGRAPH_NAME> --access-token <DAPPLOOKER_API_KEY>

Step 2: Deploy Subgraph

Once the subgraph is successfully created, deploy it using the following command. Update the following command in the package.json file of your subgraph in place of the deploy-local command:

graph deploy --node https://graph-api.dapplooker.com/deploy/ --ipfs https://graph-api.dapplooker.com/ipfs/api/v0 <SUBGRAPH_NAME> --access-token <DAPPLOOKER_API_KEY>

After creating the subgraph, you can check its status here.

Step 3: Register Subgraph on DappLooker and Analytics

Once it is successfully deployed, you can register the project on DappLooker using the endpoint provided on the my-subgraph page. For more details, check out register project.

Removing Subgraph

You can use the command below to remove the created or deployed subgraph. Update the following command in the package.json file of your subgraph in place of the remove-local command:

graph remove --node https://graph-api.dapplooker.com/deploy/ <SUBGRAPH_NAME> --access-token <DAPPLOOKER_API_KEY>

Note: This operation will delete the subgraph and its data. Please ensure you want to delete it before proceeding.

Developer Support

If you have any questions or need help regarding deploying your subgraph to the DappLooker Graph Node, please join our DappLooker Telegram group.

Resources

Last updated