Questions tagged [subgraph]
The subgraph tag has no usage guidance.
11
questions
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 ...
0
votes
0
answers
9
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 this 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 ...
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/: ...
0
votes
0
answers
9
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
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",
"...
0
votes
0
answers
14
views
Latest Subgraph query
How to get the latest subgraph of pancakeswap ? I have tried with the below link but it is not working fine
go to this link
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?...
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: ...
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 ...
0
votes
1
answer
167
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
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 ...