Questions tagged [the-graph]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

How to get highest volume trading pairs from Pancakeswap using python

Is there a way to get the Pancakeswap trading pairs with the highest volume? I have tried using graphql, but for most queries I get a timeout error 524. I know I can also use the python web3 library ...
user avatar
  • 167
0 votes
0 answers
6 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/: ...
user avatar
0 votes
0 answers
11 views

How to fetch on-chain data of major tokens to create a dashboard app

I'm thinking of creating a simple dashboard app to show summaries of ~100 major ERC20 tokens. Similar examples are: https://etherscan.io/tokens https://cryptofees.info/ In this case, what is the ...
user avatar
  • 1
3 votes
0 answers
14 views

Return transactions for a specific pair - TheGraph

I am trying to return the latest 1000 transactions for a specific pair in Uniswap V2 using The Graph playground. The pair I am using is for USDC/WETH and its id is: ...
user avatar
  • 220
0 votes
1 answer
126 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", "...
user avatar
0 votes
0 answers
18 views

API for find smart-contract deployed which chain?

Is there any API which gives me details that project smart-contract deployed on which chain via its smart-contract address? e.g. How to know whether it deployed in polygon, avalanche, ethereum? If is ...
user avatar
0 votes
0 answers
6 views

Get Limit Price from thegraph limit price order

Trying to get price from limit order that was been summited to contract but when call theGraph query: https://api.thegraph.com/subgraphs/name/gelatodigital/limit-orders-fantom-ii/graphql, I getting ...
user avatar
  • 111
1 vote
1 answer
94 views

Receive an error when trying to run yarn codegen using the graph to generate types for contract ABIs

Hello Team I Receive the Following Error when using the Graph yarn codegen command trying to generate types for contract ABIs × Failed to generate types for contract ABIs: Failed to generate types for ...
user avatar
0 votes
1 answer
25 views

Can the graph only index indexed parameters?

I have an event that looks like this: event ItemListed( address indexed seller, address indexed nftAddress, uint256 indexed tokenId, uint256 price ); And I'd ...
user avatar
0 votes
0 answers
78 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?...
user avatar
  • 35
0 votes
0 answers
116 views

Uniswap V3 subgraph gives incorrect token0Price and token1Price

I am running the following GraphQL query on the Uniswap V3 Subgraph query { pools ( first: 1000, orderBy: totalValueLockedETH, orderDirection: desc, subgraphError: ...
user avatar
0 votes
0 answers
31 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 ...
user avatar
1 vote
1 answer
53 views

Event Monitoring - TheGraph, AWS, Alchemy

I am looking for any ideas on the best way (from a production standpoint) to have a queryable way to get the balance of accounts in a smart contract which would be deployed on multiple EVM compatible ...
user avatar
  • 46
0 votes
0 answers
136 views

How to retrieve All ERC721, ERC1155 Contract Addresses From Ethereum Blockchain?

I'm trying to retrieve all contract addresses of erc721 and erc1155. Is there any way retrieve that without using the openseaAPI? Any expample related to The Graph ?
user avatar
0 votes
1 answer
131 views

What Is The Best Way To Retrieve All Transactions of a Certain Token?

I am currently trying to better understand purchasing trends of certain NFTs (ERC-721). Currently, I am doing this using EtherScan's API. Now, the API calls return "up to a maximum of the last ...
user avatar
1 vote
0 answers
25 views

Ethereum Node on AWS

I am running an Ethereum node on AWS. I am having problems connecting my Graph node that was built using Google provisioning services. Any suggestions for where to look for the error?
user avatar
  • 11
0 votes
0 answers
10 views

The Graph - How to define logic to handle contract deployment?

It's very straightforward to define the logic that handles an (Ethereum smart contract) event. But, how to define the logic that handles contract deployment? Real-world use case: The smart contract ...
user avatar
  • 438
0 votes
2 answers
391 views

Problem compiling subgraph with graph-ts new version

I'm getting this error: ERROR TS2322: Type '~lib/@graphprotocol/graph-ts/common/value/Value | null' is not assignable to type '~lib/@graphprotocol/graph-ts/common/value/Value'. I know it is for this ...
user avatar
1 vote
1 answer
169 views

What is the default query limit on The Graph?

Say I have a GraphQL query like this, which I execute against a subgraph powered by The Graph: { foo { id bar } } What is the default number of instances of foo that a subgraph returns?
user avatar