Questions tagged [subgraph]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
49 views

After successfully deploying a subgraph via The Graph to Mumbai it suddenly stops working for no apparent reason

so I have succesfully deployed a subgraph to a fork of the masterchef contract from sushiswap. Before beeing able to sync up properly, the subgraph suddenly throws an error and stops. The error ...
CheeseMcBurger's user avatar
0 votes
0 answers
48 views

Not able to add `dataSource` to existing subgraph

I am new to GraphQL & The Graph protocol. I have an exisitng subgraph with already 2 dataSource and deployed. Now I want to add 1 more new dataSource to subgraph. According to The Graph docs, I ...
Rishabh Raghwendra's user avatar
0 votes
1 answer
12 views

Does Aragon OSX have a url for polygon subgraph?

I only see goerli subgraph in the documentation.
Yan Digilov's user avatar
0 votes
1 answer
24 views

Is there a script to automatically re-deploy a subgraph?

I have a subgraph that is running on a EC2 Instance and I want to be able to re-compile it, re-generate it and re-deploy it every time a configuration changes. When I say configuration, I refer to the ...
Falcon Stakepool's user avatar
0 votes
1 answer
74 views

How to get the subgraph hash once compiled and deployed?

I have a graph-node running in a EC2 instance. The subgraph has been compiled, created and deployed already and it is running with no issues. I want to query its status by running the following ...
Falcon Stakepool's user avatar
1 vote
1 answer
52 views

Subgraph returning null for some addresses

I have deployed a version of the open-zeppelin-subgraph (https://github.com/OpenZeppelin/openzeppelin-subgraphs) and I am tracking ERC20, ERC721 and ERC1155 tokens. I am using this query: { ...
Falcon Stakepool's user avatar
1 vote
0 answers
129 views

Does the graph-node re-sync all blocks every time it gets restarted?

I am running an EC2 instance with graph-node, using docker. Let's assume that I have a list of smart contracts that I want my subgraph to track and, at some point, that list gets updated; so I have to ...
Falcon Stakepool's user avatar
0 votes
0 answers
194 views

Graph deploy failure retrieving and parsing subgraph mainfest

I'm trying to deploy a subgraph created using the Graph cli tool (following the Building a Subgraph with Subgraph Studio tutorial), but after set the auth key for subgraph studio (graph auth --...
nhussein11's user avatar
0 votes
1 answer
33 views

how define multiple @fulltext search in a GRT subgraph?

I have a graphql.schema file in my subgraph(GRT) I try to write a search for 3 entity but the graph accepts one @fulltext type like this: type _Schema_ @fulltext( name: "ABXsearch" ...
Zig Balthazar's user avatar
0 votes
1 answer
17 views

Is there a way to enable logs for graph commands?

I am running the following version of graph-cli: @graphprotocol/graph-cli/0.42.4 linux-x64 node-v18.15.0 Is there a way to setup a log or have more details after each command gets executed?
Falcon Stakepool's user avatar
2 votes
2 answers
130 views

How to use Open Zeppelin subgraphs to query ERC721 balance?

I have created an Open Zeppelin subgraph so I can track many different ERC20, ERC721 and ERC1155 smart contracts. My config.json looks like this: { "output": "generated/sample."...
Falcon Stakepool's user avatar
0 votes
1 answer
303 views

Subgraph indexing error, mapping aborted with ethereum value is not an address

Subgraph indexing failing due to mapping abortion with reason - ethereum value is not an address, from one of the handlers. I understand the issue if from the handlePaymentExpenseCreated() function ...
Gokul's user avatar
  • 3
0 votes
1 answer
485 views

How to fix a subgraph deployment?

I've deployed a subgraph to a graph-node that I'm hosting myself, however the subgraph has a bug and is continuously attempting to re-execute the event handler but continuously fails on that bug. I've ...
MShakeG's user avatar
  • 1,443
1 vote
1 answer
72 views

How can I query the transaction number of a liquidity pool in PancakeSwap?

I want to query the transaction numbers of the liquidity pools of PancakeSwap and so that decide which 10000 of them are the most active ones (there are 1.2M). How can I do this using Ethers.js or ...
Mendax's user avatar
  • 11
1 vote
0 answers
78 views

Uniswap V3 Pool Subscription

I am trying to subscribe to uniswap v3 pool events and this is my query subscription { pool(id: "0x0001fcbba8eb491c3ccfeddc5a5caba1a98c4c28") { id, token0 { id symbol ...
Rafael's user avatar
  • 11
0 votes
1 answer
232 views

How to fetch Token data from uniswapV3?

I am trying to fetch some token data from uniswapV3 subgraph. https://thegraph.com/hosted-service/subgraph/uniswap/uniswap-v3 token address is: 0x06450dEe7FD2Fb8E39061434BAbCFC05599a6Fb8 i can view ...
salik saleem's user avatar
1 vote
1 answer
239 views

Error during initialization of subgraph using Graph Indexing Protocol

I am trying to initialize a subgraph using the Graph Protocol but keep getting the error below. My npm version is 9.1.2, yarn version is 3.2.3, node version is 18.12.1, and graph version is 0.36.1. ...
May's user avatar
  • 21
1 vote
1 answer
315 views

How to Use Subgraph Enums in the Mapping?

Subgraph documentation mentions enums but does not show how to use them in mappings. I tried to import it from the generated schema, along with other type definitions, but compiler gives error: ...
ferit's user avatar
  • 507
0 votes
1 answer
7 views

Looking through the aragonOSx SDK, I gather that the idea is for plugin developers to also create their own clients and subgraphs for for their apps?

Here is the aragonOSx SDK repo (https://github.com/aragon/sdk). I'm wondering if every developer who develops a plugin and publishes it to the protocol (https://github.com/aragon/core) has to create ...
juliette_chevalier's user avatar
0 votes
1 answer
6 views

How can I get the plugin address of my aragonOSx plugin?

When you deploy your plugin you get the address, so you know your plugin address, but there are no functions on the contracts (that I can see) that matches repo names with addresses. Is the idea that ...
juliette_chevalier's user avatar
0 votes
2 answers
33 views

how to search for the destination of a transaction

I defined a subgraph without the contract address - kind: ethereum/contract name: Trove network: mainnet source: abi: Trove startBlock: 5 mapping: kind: ethereum/...
Micha Roon's user avatar
  • 2,183
0 votes
1 answer
181 views

How to develop a network or chain agnostic subgraph?

Multichain applications setup a network/chain config that could be simplified to an object where each key is a unique ID for a supported chain such as the chainId as follows: // typescript: enum ...
MShakeG's user avatar
  • 1,443
2 votes
0 answers
147 views

Cannot decode function call in subgraph code

This is with: graph-cli v0.34.0 graph-ts v0.28.0 I'm trying to decode a function call in my subgraph mapping but it's not working. There is a tuple in the function input that seems to be causing the ...
Phil's user avatar
  • 71
0 votes
1 answer
365 views

Fetching IPFS data Subgraph Studio does not support mappings with ipfs methods

I am using the graph and am looking to get NFT meta data via ipfs in a transfer event. Everything works as expected unless I try to fetch meta data via ipfs The schema looks like type Example @entity {...
caffeinescript's user avatar
2 votes
1 answer
327 views

Can I tell to a local graph node (the graph) to not scan blocks on initialization?

I'm running a node graph locally using The Graph. I connected it to a HardHat network. As soon as I run the docker-compose I noticed that the graph starts scanning the whole blockchain history. Can ...
Jacob's user avatar
  • 155
1 vote
0 answers
44 views

How to use The Graph (GRT) with Quorum to index events and serve them via GraphQL?

I saw a few videos of using a graph node to index blockchain events, and serve them via graphql, which seemed very useful. The common pattern in these videos that I observed: They are using Infura/...
Somjit's user avatar
  • 265
0 votes
1 answer
110 views

Adding a groupby ability to subgraph of the graph protocol

How would I add the aggregation and grouping to a subgraph deployed as a hosted service on thegraph protocol? The schema.graphql does not support adding a type Query{...} or a type object in general ...
Ege's user avatar
  • 101
0 votes
1 answer
599 views

How do I get GraphQL query to get data for a specific Pancake LP pair from pancake swap hosted graph

I am trying to get Pancake-Pair data by quering the subgraph (Hosted at : https://thegraph.com/hosted-service/subgraph/mmontes11/pancakeswap) . I want to filter data by pair-contract address . I ...
Siddharth Bhoite's user avatar
0 votes
1 answer
429 views

UniSwap v2 Subgraph return 0 for Volume in USD and ETH

I've forked Uniswap v2 contracts including WETH, and Deployed on Rinkeby. the functionality of Creating Pools, adding and removing liquidity works fine. Now to get the stats like TVL, Volume, 24hr ...
Muhammad Taqi's user avatar
0 votes
0 answers
184 views

Error indexing handleIncreaseLiquidity on a local graph-node on Token#get:decimals with message: "Value is not a BigInt"

Hi, I' m tring to deploy Uniswap V3 subgraph to a local graph node that is connected to a local ethereum node on the goerli network. The OS is xubuntu v21.10 . The node is hyperledger besu v22.1.2. ...
THE_PRINCE's user avatar
1 vote
2 answers
261 views

subgraph resolve error: Serialization error: missing field `name`

I'm going though Patrick's solidity course. I'm on 28:36:52. I'm trying to deploy my subgraph and I'm getting this error. ✖ Failed to deploy to Graph node https://api.studio.thegraph.com/deploy/: ...
Harendra Shakya's user avatar
2 votes
0 answers
301 views

What is the use of IPFS node in self hosted graph-node

I was going through graph-node documentation which seems to work as backend for the graphql service & will also be responsible for saving any data to database. But I'm unable to understand what is ...
Himanshu Pal's user avatar
1 vote
1 answer
2k views

Graph Deploy failed due to subgraph validation error

I'm going through Nader Dabit's Web3 Blog and everything works just fine until I have to run yarn deploy which runs a script from my package.json { "name": "casen-blog", "...
0xBallmersPeakAdvocate's user avatar
1 vote
1 answer
289 views

How to index internal transactions in subgraph?

I'm trying to create a subgraph using callHandlers. It doesn't seem to index function calls that come from a smart contract, only EOAs. Is there a way I can ensure these are included in the subgraph?...
doylio's user avatar
  • 125
0 votes
1 answer
242 views

How to call functions or access public mappings from inside of a subgraph?

I have this struct and mapping inside my smart-contract: struct attrStruct { uint256 generation; string faction; } mapping(uint256 => attrStruct) public attributes; I want to fetch and ...
Accretence's user avatar
0 votes
1 answer
1k views

How to use the Uniswap API to access historical transaction/swap data? Any help appreciated

My objective is to query/download historical swap data. So for example, information like "Wallet A swapped B amount of C token for D token at time E". I am having a huge amount of trouble ...
Vladimir Belik's user avatar