Questions tagged [data]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
28 views

PDF direct to blockchain?

So firstly I'm just going to preface this with the disclaimer that this is an educational exercise, I understand that the gas fees would be ridiculous. This is for a project, not to ever deploy to ...
Mccalabrese's user avatar
1 vote
1 answer
15 views

Why a zk-rollup should provide data availability given it can use zkp to prove correctness?

The whole idea behind zkp is to prove correctness of the result of a computation without actually disclosing the inputs that you might want to keep secret. So why in the context of zk-rollups it is so ...
Davide C's user avatar
  • 896
1 vote
1 answer
13 views

Solidity large data handling

I’m currently doing a solidity project where users can create crowdfunding campaigns and others can participate financially to them. Each campaign is defined by a struct containing basic informations ...
Crydamoure eth's user avatar
0 votes
1 answer
121 views

Comparison of NEAR and Celestia Data Aavailability Approaches? [closed]

Recently NEAR has come up with a Data Availiabity approach which they claim to be far more superior to a lot of existing techniques. Celestia DA leverages 2D Erasure Coding based Data Availability ...
Gokul Alex's user avatar
1 vote
0 answers
34 views

how to get data about all tokens on the ethereum chain

I want to get data about all the tokens that are on the Ethereum chain without specifying the address of each token, how can I do this?
Matveu's user avatar
  • 11
1 vote
3 answers
61 views

How to parse the input data from the 'More Details' section of a transaction into an Excel Spreadsheet

I wonder if anyone can assist please? I have searched the forum but I cannot find anything that answers my specific question. I'm trying to parse the input data from transactions on the following ...
cryptomal's user avatar
0 votes
2 answers
26 views

How to do data analytics on-chain

as I understand it, data analytics (like calculating averages etc) on blockchain data is usually done off-chain (ie. you obtain data from the blockchain via say a third party API call or directly from ...
Qustack's user avatar
0 votes
1 answer
24 views

Best approach to simplify phantom array logic (ERC721 Enumerable) [HARD]

I wanted to create an ERC721 token vault with arbitrary numbers of NFTs pre-"minted", yet compliant with IERC721Enumerable as a proof-of-concept. For simplicity, the NFT ids are contiguous. ...
Ashraile's user avatar
  • 123
1 vote
1 answer
23 views

How can I access the 3rd argument of _safeMint?

I am minting an ERC721 using _safeMint and I am setting the 3rd argument to a string. I want to be able to access this data argument using the transaction hash or whatever I have to access the ...
Falcon Stakepool's user avatar
0 votes
1 answer
29 views

can I get market data from chainlink and how?

I need to get price market cap and price change of cryptos do you know any free plans and how what limitations do they have?
NIMA Shahahmadian's user avatar
1 vote
4 answers
96 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
147 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
3 votes
1 answer
783 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
40 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
268 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
35 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
2 votes
1 answer
460 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
1k 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
155 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
23 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
172 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
17 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
  • 338
2 votes
1 answer
106 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
  • 338
1 vote
1 answer
203 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
  • 338
1 vote
2 answers
125 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
1k 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
50 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.5k
1 vote
2 answers
812 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
  • 273
0 votes
1 answer
84 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 { ...
Praval791's user avatar
0 votes
1 answer
146 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
1 vote
1 answer
482 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
  • 115
0 votes
1 answer
57 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
  • 27
1 vote
0 answers
18 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
  • 583
1 vote
0 answers
25 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
22 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
246 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,585