Questions tagged [query]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
30 views

How to gather historical events emitted by any contract

I am trying to gather all events of a specific type on the entire chain, regardless of what contract emitted them. When trying to find solutions online, I came across code like the following (source): ...
1
vote
1answer
82 views

How to query my Polygon NFTs created on Opensea?

sadly I realized, that while querying my assets on Opensea, as well as collections, is feasible through OpenSea Api for Ethereum NFTs, the same is not true for Polygon Collections and NFTs in my ...
0
votes
0answers
11 views

How to query or find all the NFTs of a particular token?

Let's say, a) I issue NFTs, or b) someone else does. How would I query or find all the NFTs that have been created and who owns each? Can I do that for both a) and b), or only for a)?
1
vote
1answer
13 views

Fetching InternalType data from another contract

basically I have this ABI for a contract {"internalType":"bytes","name":"_DATA","type":"bytes"}],"name":"function","...
0
votes
0answers
12 views

Why there are multiple contract creation record from same address on crypto_ethereum.contracts from Google BigQuery

I just start using Google BigQuery to analyze the Ethereum Network. When I execute the following query: SELECT * FROM `bigquery-public-data.crypto_ethereum.contracts` WHERE address='...
1
vote
0answers
31 views

The graph, filter query by relationship non id value

I have these types: type Poll @entity { id: ID! hash: String! contributions: [Contribution!]! @derivedFrom(field: "poll") } type Contribution @entity { ...
0
votes
0answers
254 views

How to display the NFT of my project on React?

I made a project where people can mint my NFT and now I would like to create a webpage on react where the users can see the NFTs that they had minted. Basically, I would like to take the address of ...
0
votes
1answer
207 views

How to query contract input (address) using Etherscan's API?

How would I query using their API? Below doesn't seem to want to work, I'm querying for canMint() where it takes in address[] and returns a Boolean. https://api-rinkeby.etherscan.io/api?module=proxy&...
0
votes
0answers
37 views

Query first 30 swaps for given Uniswap pair using API

According to the Uniswap v2 Docs, the following query fetches the latest 30 swaps for all pairs in the array allPairs: query($allPairs: [String!]) { swaps(first: 30, where: { pair_in: $allPairs }, ...
0
votes
0answers
332 views

Calculating Simple APR of a Uniswap Pool with GraphQL

Sorry, I am just having a bit of a logic error in understanding how to calculate the APR of a Uniswap Liquidity Pool. I can reliably send requests to https://thegraph.com/explorer/subgraph/uniswap/...
0
votes
0answers
14 views

How to search for event in when an input should be the 5th topic in event

I want to query an ERC1155 token event where I know the token Id, there only can be 4 topics and tokenId would be the fifth,which means it's not an indexed input and goes to the data part. How can I ...
0
votes
0answers
248 views

Using a full archival node like Parity or Geth, how to query which is the last transaction which changed the value of a particular storage address

I tried various third party services like Infura, and there support all told me that this was unsupported and that I would have to run my own Parity full archival node for this. But even if I would ...
1
vote
0answers
96 views

How to get total tether supply on Ethereum from BigQuery dataset

I've noticed that the numbers for Totaly supply of Tethers seem to diverge on the official Tether transparency page and the Etherscan block explorer, and I want to find a way to get the correct number....
0
votes
1answer
38 views

Mappings inside functions to filter query

I have a struct and several boolean mappings that are used to keep track of struct's properties struct Animal { string species; bytes32 ID; } mapping (bytes32 => Animal) public Animals; ...
0
votes
1answer
499 views

Query Ethereum Blockchain for functions return value of a Specified Smart Contract

I want to get smart contract functions return value sent by a specified smart contract within a range of blocks. I found a [manual] working method to achieve this: async function getTxsByAccount(...
1
vote
0answers
105 views

How to open Parity database from javascript (how to open column families)?

I am trying to connect to Parity database at var dbPath = 'C:\\Users\\username\\AppData\\Local\\Parity\\Ethereum\\chains\\ethereum\\db\\906a34e69aec8c0d\\overlayrecent\\db' form javascript using npm ...
0
votes
1answer
90 views

How does CryptoKitties query price data? (To make filters)

so I was just wondering on how CryptoKitties work. Like in order to query the price of each Kitty, do they querry like every single Kitty's price and then sort it out. Or is there a function or a ...
2
votes
2answers
908 views

Error: Couldn't decode bytes32 from ABI: 0x The size doesn't match

I am querying a mapping via a web3 call like this: var Web3 = require('web3'); const web3 = new Web3(new Web3.providers.HttpProvider('https://kovan.infura.io/key...')); var contractABI = new web3....
3
votes
2answers
15k views

How to get metadata from ERC721

I'm trying to get Metadata from ERC721 token. Actually I'm trying to do it via ETHERSCAN and blockcypher APIs but I can't find the metadata in the response (like the Picture URL or the IPFS ID) Can ...
3
votes
0answers
162 views

Ethereum block chain extracter and parser like blocksci

I'm new to ethereum and I would like to develop an analyzing framework for ethereum. Is there a blockchain extractor and a parser to similar to blocksci available for ethereum and support analyzing of ...
3
votes
2answers
2k views

Index and query blockchain data and levelDB

Would it be more performant to query the blockchain data directly through the underlying database levelDB instead of using the provided geth api? How would it be possible? Can I just index the ...
3
votes
1answer
1k views

Querying the blockchain: Search transaction by data

Is it possible to perform queries on the blockchain, based on transaction properties (other then hash), such as its data/sender/value/etc fields? For example, is it possible to "ask the blockchain" to ...
3
votes
1answer
340 views

API to enumerate the blocks from a specific day

I'm trying to find an API that lists all the blocks from a specific day, as we can do with bitcoin: https://blockchain.info/pt/blocks/1515628800000?format=json I've searched etherscan.io and ...
2
votes
2answers
125 views

ETH blockchain reading scalability

Quick premise, I'm super new to blockchain and Solidity. I've tried to figure out scalability implication of reading data from the blockchain. I understand that reading operations are free, but how ...
1
vote
0answers
36 views

Is it possible to query blockchain using wallet extra-infos?

I read here how to add extra fields to a wallet address, is it possible to query the ethereum blockchain and find all wallets with the same extra-filed? For example: all wallets with the same user ...
10
votes
3answers
9k views

Solidity error when encoding arguments to query public mapping

While developing a Smart Contract with Solidity on Remix , after creating the contract I'm trying to query a public mapping: mapping (address => uint256) public balanceOf; but when I call ...
2
votes
1answer
1k views

Asynchronously querying the block chain

This question is related to this one or this one. There is a tutorial here that shows some filtering examples but it doesn't get into transaction level granularity. Can we query the block chain by ...
6
votes
1answer
2k views

How run queries on the block chain?

since I am quite new to Eth I have the following question : there are some transactions made between two parties which are saved in the block chain. On window.onload() prior to rendering my components,...
5
votes
1answer
3k views

Listing transactions in a private blockchain?

In a private blockchain, is it possible to list the transactions based on from and to parameters in a transaction. Is it possible to check the latest transaction from or to an address? Also, is it ...
4
votes
2answers
7k views

How to query local Ethereum blockchain for a specified transaction?

I want to find specified transaction. How can I query my local Ethereum blockchain from the console?
6
votes
2answers
738 views

How does etherchain access and query Ethereum blockchain transaction data?

Can whatever method that etherchain are using to access and query the blockchain data also be leveraged by the average web developer in a garden variety web app using a remote call? Or, are etherchain ...