Questions tagged [query]
The query tag has no usage guidance.
42 questions
0
votes
2
answers
47
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 ...
0
votes
0
answers
37
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 ...
1
vote
0
answers
128
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?
0
votes
1
answer
612
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 ...
0
votes
1
answer
64
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 ...
1
vote
2
answers
2k
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 ...
1
vote
0
answers
78
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 ...
0
votes
1
answer
2k
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 ...
0
votes
1
answer
87
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 ...
0
votes
3
answers
664
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 ...
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 ...
0
votes
1
answer
105
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 ...
3
votes
0
answers
137
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: ...
1
vote
1
answer
1k
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 ...
0
votes
1
answer
562
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/...
1
vote
0
answers
195
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 ...
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):
...
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 ...
3
votes
1
answer
646
views
Fetching InternalType data from another contract
basically I have this ABI for a contract
{"internalType":"bytes","name":"_DATA","type":"bytes"}],"name":"function","...
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 {
...
0
votes
0
answers
737
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 ...
1
vote
1
answer
666
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
0
answers
564
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
0
answers
182
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
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;
...
0
votes
1
answer
629
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
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 ...
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 ...
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....
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 ...
3
votes
0
answers
174
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 ...
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 ...
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 ...
3
votes
1
answer
487
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
2
answers
172
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
0
answers
44
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 ...
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 ...
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 ...
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,...
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 ...
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?
6
votes
2
answers
777
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 ...