Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [query]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
42 views

Is there a way to test whether an external contract implements (or does not implement) a given interface method?

How would you determine whether a given contract implements a particular interface method without reverting? interface IRandomMethod { function getUint() external view returns (uint); function ...
Ashraile's user avatar
  • 125
0 votes
0 answers
28 views

Query event - Range limit on Polygon, but not on Ethereum?

I want to query some deposit events to show all deposits for a user. On Ethereum, I did it like this to query all deposits (starting from block 0) const block = await provider.getBlockNumber() const ...
jan's user avatar
  • 111
1 vote
0 answers
108 views

How can I get the whole list of all trading pairs on Uniswap?

I looked at docs and it says to use Queries, but I have no idea how to imply it. Could you please help me?
aleexeyy's user avatar
0 votes
0 answers
13 views

How can I mimic legacy bank in my project?

I want to build a project where legacy bank interacts with blockchain networks (over CCIP). Please suggest me how can I mimic a legacy bank - as a separate project or any different idea is appreciated....
Inderdeep01's user avatar
0 votes
1 answer
212 views

Querying events using ethersjs provides logs with unrelated contract addresses

The UniswapV2Factory contract has the following event: event PairCreated(address indexed token0, address indexed token1, address pair, uint) I am using etherjs to detect all events on chain in the ...
RamanSB's user avatar
  • 103
0 votes
1 answer
48 views

Deploy of subgraph fails in Amazon EC2 Instance

I want to run graph-node (The Graph) in an Amazon EC2 Instance. I have setup everything with docker-compose and the 3 containers (graph-node, ipfs and postgres) are running smoothly. I have also setup ...
Falcon Stakepool's user avatar
0 votes
2 answers
1k views

Can you fetch the whole transaction history of specific contracts somewhere?

I know you can validate the data of specific tx hashes using web3js or the etherscan api. But is there a service which allows to query all transactions performed by or connected to a specific smart ...
rajohs's user avatar
  • 179
1 vote
0 answers
71 views

How to handle both String and Bytes return types in Rust

I'm trying to query the MAKER ERC20 contract and get the name and symbol of the token. The problem is that they are stored as a Bytes and I don't want to change the return type of my function from a ...
Mitchs's user avatar
  • 11
0 votes
1 answer
927 views

Searching for Ethereum addresses that match a partial address?

Using publicly available blockchain explorers such as Etherscan, is it possible to return all matching results for a partial address or transaction hash? More specifically, if the known piece of data ...
digital_everest's user avatar
0 votes
1 answer
72 views

I have a 3 million unique wallet addresses. What is the most efficient way to get the ETH balance and also no.of NFTs each address is holding?

I am looking for an efficient way to query/get ETH balance and also the no.of NFTs belongs to a unique 3 million wallet address. Any tools or suggestions will be helpful. Well, I know we can use any ...
Krishna Kumar S's user avatar
0 votes
3 answers
516 views

How can I query the onchain data on the ethereum blockchain without using any APIs?

I want to get all the onchain data available on the Ethereum blockchain about an NFT from its contract address and tokenID. Like its metadata, the current owners, its last price, etc. How can I do ...
amam's user avatar
  • 11
1 vote
0 answers
28 views

Is there a way/place to query erc1155 smart contract with the token id from opensea

When you mint an NFT directly on opensea with ethereum and then freeze the data, the NFT metadata is suppose to be stored on ipfs and so does the NFT image. Normally opensea link to the metadata (Not ...
soltana's user avatar
  • 13
0 votes
1 answer
96 views

Forced Withdraw from L2 StarkEX

I need to request the forced withdraw function on the StarkEx smart contract in order to get my DYDX funds back to L1. I have found an Github solidity code but no clue how to deploy it to StarkEx ...
FrankSter's user avatar
3 votes
0 answers
108 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: ...
Magofoco's user avatar
  • 250
1 vote
1 answer
995 views

Is there a multi-call equivalent for calls that aren't made to a smart contract?

I have an array with a bunch of events. I get the block number from these events but I also need the block.timestamp which isnt returned in the event object, its returned by getting the block. So I am ...
Ebrahim Elbagory's user avatar
0 votes
1 answer
536 views

Decode input data in bigquery on polygon

I have a problem in developing a program to decode the input data of transactions created by a smart contract on the polygon blockchain. The smart contract: https://polygonscan.com/address/...
Antho0f's user avatar
1 vote
0 answers
177 views

convert time to utc in Dune Query

I can create a query on the DuneAnalytics site, but the default date format for a field is "2022-02-08 02:44", which downloads to csv as "2022-02-08T02:44:46+00:00". Does anyone ...
Eric Falkenstein's user avatar
3 votes
1 answer
3k 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): ...
UTF-8's user avatar
  • 518
1 vote
1 answer
1k 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 ...
John Mayer's user avatar
3 votes
1 answer
589 views

Fetching InternalType data from another contract

basically I have this ABI for a contract {"internalType":"bytes","name":"_DATA","type":"bytes"}],"name":"function","...
teggr234's user avatar
1 vote
0 answers
51 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 { ...
scotby's user avatar
  • 33
0 votes
0 answers
718 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 ...
Lorenzo's user avatar
  • 11
1 vote
1 answer
626 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&...
pixel's user avatar
  • 13
0 votes
0 answers
547 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 ...
user2284570's user avatar
  • 1,018
1 vote
0 answers
173 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....
Dario's user avatar
  • 11
0 votes
1 answer
44 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; ...
Bryan Campbell's user avatar
0 votes
1 answer
625 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(...
Yahya's user avatar
  • 328
1 vote
0 answers
134 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 ...
jabone's user avatar
  • 241
0 votes
1 answer
103 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 ...
Luis Eduardo Gonzalez's user avatar
2 votes
2 answers
1k 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....
sunwarr10r's user avatar
6 votes
2 answers
21k 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 ...
Ziba Leah's user avatar
  • 203
3 votes
0 answers
172 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 ...
Devortz's user avatar
  • 61
5 votes
2 answers
3k 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 ...
jeff's user avatar
  • 603
3 votes
1 answer
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 ...
Starnuto di topo's user avatar
3 votes
1 answer
486 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 ...
karliwson's user avatar
2 votes
2 answers
169 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 ...
Dave's user avatar
  • 159
1 vote
0 answers
43 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 ...
cesko80's user avatar
  • 75
11 votes
3 answers
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 ...
Juan Ignacio Pérez Sacristán's user avatar
2 votes
1 answer
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 ...
Sebi's user avatar
  • 5,284
6 votes
1 answer
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,...
Evgeni Pirianov's user avatar
5 votes
1 answer
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 ...
galahad's user avatar
  • 3,920
4 votes
2 answers
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?
gkucmierz's user avatar
  • 773
6 votes
2 answers
770 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 ...
Donavan Theodor's user avatar