Skip to main content

Questions tagged [subgraph]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
314 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/: ...
0 votes
1 answer
444 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 ...
0 votes
0 answers
18 views

why am i getting negative value for effective gas price?

May 27 10:51:16.745 DEBG Trying again after eth_getTransactionReceipt RPC call for transaction 0x77e3b240fb0e665edc49b4f2464095ae69a18a4760cf2f654103237ad1c3d3b3 failed (attempt #5) with result Err(...
0 votes
1 answer
15 views

Efficiently Visualizing and Retrieval Ethereum Smart Contract Events on Decentralized Storage

I want to know what are the recommended decentralized storage solutions (IPFS or sub-graph)? and general process for retrieving them for front-end visualization?
1 vote
0 answers
73 views

When I execute graph deploy, I get an error: Failed to upload subgraph to IPFS: Failed to upload file to IPFS. How to solve it

when i execute "graph deploy",it shows me the subgraph error
0 votes
1 answer
544 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 {...
0 votes
1 answer
111 views

How to get the subgraph hash once compiled and deployed using graph-cli?

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 ...
1 vote
1 answer
220 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 ...
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 ...
0 votes
0 answers
16 views

Handle workspace/monorepo with different deployments

I am using yarn workspaces in which I have 2 projects. My-project contracts subgraph Some devs work on contracts, others on subgraph. The flow of the release is the following: PRs are created ...
0 votes
0 answers
45 views

Subgraph Link for Uniswap V2 on BSC?

I'm looking for the SubGraph Api endpoint to interact with UniswapV2 on the Binance Smart Chain (BSC). Can anyone provide the specific link or information on how to access it? I appreciate any ...
1 vote
1 answer
62 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/...
1 vote
1 answer
360 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?...
0 votes
1 answer
109 views

I want a GRT tokens faucet site or any link where I can buy these testnet

I want a Graph-Token (GRT) faucet site or any link where I can buy these testnet.
0 votes
1 answer
607 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 ...
1 vote
0 answers
69 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 ...
0 votes
1 answer
685 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 ...
0 votes
1 answer
50 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" ...
0 votes
1 answer
20 views

Does Aragon OSX have a url for polygon subgraph?

I only see goerli subgraph in the documentation.
0 votes
1 answer
39 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 ...
0 votes
1 answer
54 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?
1 vote
1 answer
107 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: { ...
2 votes
2 answers
188 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."...
2 votes
0 answers
353 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 ...
0 votes
1 answer
487 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 ...
0 votes
1 answer
917 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 ...
0 votes
1 answer
159 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 ...
1 vote
1 answer
104 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 ...
0 votes
1 answer
308 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 ...
1 vote
1 answer
445 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: ...
1 vote
0 answers
90 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 ...
0 votes
1 answer
279 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 ...
1 vote
1 answer
348 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. ...
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 ...
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 ...
0 votes
2 answers
40 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/...
2 votes
0 answers
176 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 ...
2 votes
1 answer
482 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 ...
0 votes
0 answers
225 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. ...
1 vote
1 answer
3k 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", "...