Questions tagged [data]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
4 answers
46 views

Specific Block Data?

How can I get data from a specific block in the past? Does node providers support archive node? Any suggestions are welcome.
Tien's user avatar
  • 193
0 votes
2 answers
78 views

What are the GraphQL API providers for blockchain data?

I know there are RPC providers like QuickNode and Alchemy Irwing Tello
Irwing Tello's user avatar
2 votes
1 answer
341 views

How can I decode the emitted event data field using Foundry Cast in Ethereum?

I'm trying to extract relevant information from the event but I'm not sure how to decode the emitted event data using cast. Any tips or resources would be greatly appreciated. Thank you!" E.g for ...
Surbhi Audichya's user avatar
1 vote
0 answers
25 views

"How to limit the function call for all users except those who have a special token with the address 'X'?"

hi i'm continuing to explore solidity. I wrote a contract which contains 4 functions: addAuthorizedAddress, removeAuthorizedAddress, storeData, retrieveData. The last two: storeData and retrieveData ...
Lll Cilician's user avatar
1 vote
1 answer
129 views

What's the best way to verify an address is correct in C#?

Is there an easy way to validate an Ethereum address in C#? Basically, I am looking for the method that correspond to these ones in Javascript but in C#.
Falcon Stakepool's user avatar
0 votes
1 answer
16 views

Is there a way to enable logs for graph commands?

I am running the following version of graph-cli: @graphprotocol/graph-cli/0.42.4 linux-x64 node-v18.15.0 Is there a way to setup a log or have more details after each command gets executed?
Falcon Stakepool's user avatar
0 votes
0 answers
11 views

how to collect ethereum data?

I modify the geth source code.I collect some data on Rinkeby and store them by MySQL successfully. I plan to connect to mainnet and launch the prysm.However nothing is collected.Is there any ...
Church's user avatar
  • 1
2 votes
1 answer
237 views

Best way to store private data in smart contract

I wanna to store some personal data as a string to my smart contract with simple store function like a note: mapping (address => string[]) private addressToNotes; function store (string memory ...
Alireza's user avatar
  • 350
2 votes
3 answers
351 views

DEX Real-Time Data

I have a project that tries to retrieve real time data from UnisWap V2 and SushiSwap I have already figured out how to get real time data from Sushi using api but it's not the same for Uniswap API ...
Said's user avatar
  • 31
1 vote
1 answer
99 views

contracts being deployed via 0x61088480

Lately I am coming across different deployment tx data patterns. I am already familiar with how the free memory pointer is shifted from the usual 80 when there are immutables in the code (great ...
Pablo González's user avatar
0 votes
1 answer
18 views

Which one is gas efficient?

Lets say i want to store some data about each address ,through the mapping. My first idea is: store in struct this way: struct user { address userAddress; uint256 someUint: string someString; ...
Alireza's user avatar
  • 350
0 votes
1 answer
92 views

Comparison of gas cost in different types of data storage

I want to compare gas fee of different types of data includes: String, bytes, uint, bool, int, address and etc... does anyone knows how much they costs? or share a link about this? Thank you
Alireza's user avatar
  • 350
0 votes
1 answer
15 views

Contracts design

I have a project where users deploy their own instances of a contract and those instances need off-chain data through chainlink oracle, what's the best between making the contract has its own request ...
noro meb's user avatar
  • 328
2 votes
1 answer
73 views

call a function in the same contract

i have a contract who containt a function onTokenTransfer(address _sender, uint256 _fee, bytes memory _data), when i transfer some ERC-20 Token using ERC-677 function transferAndCall, the function ...
noro meb's user avatar
  • 328
1 vote
1 answer
117 views

ERC677 transferAndCall

i want to send some LINK to a contract B from a contract A, and in the same function call a function in contract B, im using transferAndCall(address _to, uint _value, bytes _data) function in the ...
noro meb's user avatar
  • 328
1 vote
2 answers
68 views

What field is used to pass on transaction information? input field or data field?

In the documentation here under the eth_sendTransaction, it shows/states that in the transaction object sent, there is an input field. But in the documentation here it says there is a data field. My ...
Finlay Weber's user avatar
0 votes
1 answer
579 views

How to fix decoding transaction data giving wrong output in ethers-rs?

I am trying to decode the hex data of a transaction. For testing purposes I am using the transaction that can be found here https://kovan.etherscan.io/tx/...
Finlay Weber's user avatar
1 vote
0 answers
44 views

How do you find every self-destructed contract using geth?

I'd like to use my go-ethereum node to find every self-destructed contract in the history of Ethereum and get their addresses. What is an efficient way to do so?
Jesbus's user avatar
  • 10.2k
1 vote
2 answers
236 views

Are there any data sets available for download of all addresses that have been used?

Since etherscan indexes all addresses that have been involved in any transaction i was wondering if such a data set is available for download anywhere? I cant find anything on etherscans website and ...
CathalMF's user avatar
  • 253
0 votes
1 answer
48 views

How data is being retrieved from the blockchain using only the address of a smart contract

Sorry if I didn't fully clarify the question; it was quite challenging for me to do so. This is a smart contract // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract GameItem { ...
Praval Jindal's user avatar
0 votes
1 answer
79 views

Accessing historical data for validators from the API

I have been trying to pull the validator-level data for ETH for a project I am working on. I am using this API and have been unable to find a command I need. Ideally, the request URL would either ...
TG_hence's user avatar
0 votes
1 answer
309 views

Wallet mobile app that allows sending transactions with data to smart contracts on BSC?

I have tried about a dozen crypto wallet apps on Android, including Metamask, and I haven't found a single one that: supports BSC (BNB Smart Chain) allows me to manually initiate and send a ...
matteo's user avatar
  • 105
0 votes
1 answer
48 views

how to get NBA data

Hello everyone I need NBA data in my smart contract so I used some chainlink jobs but they don't provide specific data about the teams or players , is there any node that can help ? or is there ...
Kasra's user avatar
  • 17
1 vote
0 answers
17 views

How to make Enums scalable? [duplicate]

Let's say that I have a contract Games.sol containing an enum with multiple games. enum { TicTacToe, PacMan, Chess } This enum is currently imported from a library and I think that it's immutable, so ...
Franfran's user avatar
  • 564
1 vote
0 answers
20 views

Is there a particular reason as to why evm adresses are only 160 bits and not 256 bits? [duplicate]

Is there a particular reason as to why evm adresses are only 160 bits and not 256 bits? Wouldn't that create a pigeon hole problem eventually? Is this solely to save 96 per addresses so to decrease ...
karma badger's user avatar
0 votes
1 answer
20 views

Can I integrate files within a smart contract?

I want to create a smart contract, let you use files like docx, doc, pdf etc. with the reason of keep those files in the smart contract system and use them when the users of the smart contract ...
Satoshi_Amadeus_XDS_Stars's user avatar
1 vote
1 answer
221 views

Retrieve a non-constant/non-view transaction's return (output) data with hardhat/ethersjs

I'm trying to figure out if it's possible to retrieve the return value of a non-view function. Specifically, I want to see the return value of a newly created contract I have created a simple setup to ...
phaze's user avatar
  • 1,555