Questions tagged [blockchain]

The Ethereum blockchain is a distributed database based on the Ethereum whitepaper specification and stores both the full transaction list and the most recent state.

1,084 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers
161 views

Kademlia: How does Ethereum uses node discovery protocol to avoid sybil/eclipse attacks?

I want to describe a case that's not clear to me. let's say we have 10 peer validator nodes who reach consensus and agree to store some blocks on their chain. Let's say now that a wallet wants to sync ...
Panagiotis Drakatos's user avatar
6 votes
0 answers
1k views

Why does Ethereum use JSON-RPC and not gRPC?

I am fairly new to networking protocols especially JSON-RPC and gRPC as they are not nearly as common in web development as REST. I was reading around and seems like gRPC generally performs better. So ...
RhinoBomb's user avatar
  • 161
5 votes
0 answers
207 views

Is it possible to fork multiple blockchains at the same time for testing smart contracts?

I am trying to fork ethereum, polygon, and arbitrum at the same time. I tried to use ganache-cli specifying different ports for each chain but it does not seem to grab the chain data when I use a ...
Prox Ima's user avatar
5 votes
2 answers
318 views

How do you prove ownership of a digital asset with NFTs?

I have a few questions regarding NFTs. Every source I find online roughly says that an NFT is a blockchain-stored ownership certificate for a certain digital asset. But I don't understand how that ...
Angelo Brillante Romeo's user avatar
5 votes
0 answers
41 views

Difference between Ethereum Web APIs and Ethereum API as a service

I am approaching ethereum for the first time and I am reading the documentation. Can anyone explain the difference between Ethereum Web APIs (BlockCypher) and The Ethereum API as a service (infura)? ...
Micheal's user avatar
  • 91
5 votes
4 answers
6k views

Problem In Getting Rinkeby Test Ethers

I tried to get rinkeby ethers from https://faucet.rinkeby.io/ by creating a tweet but the website shows "insufficient funds for gas * price + value” error. I also tried the website faucets....
Aman Gupta's user avatar
4 votes
1 answer
2k views

Error: Transaction reverted: function returned an unexpected amount of data, Pancakeswap

I really need your guy's help as I'm stuck in this for a week. Actually, I'm implementing a swap function on pancakeswap, I'm following this documentation. I'm doing swapEthForExactTokens but getting ...
Adil Nehal's user avatar
4 votes
0 answers
107 views

Ensuring the atomicity of multiple transactions

I am new to solidity and have been creating single (both basic and complex) transactions. However, I have a question which I couldn't come up with a solution. How can I create 2 (or more) transactions ...
merdoyovski's user avatar
4 votes
0 answers
2k views

How Merkle trees are implemented in a database exactly

I have just checked out these resources: What is a Merkle Tree? Beginner’s Guide to this Blockchain Component Using Merkle trees to detect inconsistencies in data Exploring the use of Hash Trees for ...
Lance's user avatar
  • 165
4 votes
0 answers
494 views

How to access txpool pending transactions using Netherum?

I want to get list of transactions which are in pending state & queued state in txpool. I can see these transactions in pool using txpool.inspect command. I tried code given in nethereum sample ...
Vinayak M's user avatar
  • 108
4 votes
0 answers
2k views

Mining hangs on Generating DAG in progress

I am trying to initialize rpc using the below command and start miner using miner.start(1); geth --rpcapi eth,web3,personal --rpc --networkid=15 Mining starts successfully with below logs but it ...
Alien's user avatar
  • 415
4 votes
1 answer
465 views

Storing private data off-chain with a sharing feature upon request

My question is not very technical from an implementation point of view, but I am looking for advice to achieve a specific use case using blockchain tech. I would greatly appreciate any insights or ...
Olshansky's user avatar
  • 185
4 votes
0 answers
3k views

How to encode data payload in ETH transaction

I'm using python to sign and send ETH transactions, and would like to do the same for ERC-20 token transactions as well. I'm having trouble correctly encoding the data payload to invoke the transfer ...
Achia's user avatar
  • 151
4 votes
1 answer
485 views

Why does geth -light start importing block headers from 3297471

I've been using geth to download the blockchain (on full) and one of the requirements for my research involves the use of light clients. I used 2 computers to download the blockchain on the -light ...
Brandon's user avatar
  • 43
4 votes
0 answers
178 views

Did the ripemd precompiled contract get deleted?

A bug "caused account 0000000000000000000000000000000000000003 to be deleted in block 2675119, even though the deletion should have been reverted due to an out of gas error." Source Did account 0..3 ...
eth's user avatar
  • 84.2k
4 votes
0 answers
211 views

Genesis.json permanence and updating the blockchain

I understand that the initial genesis.json attributes are a permanent thing, and it cannot be changed retroactively. But what I want to know is which parameters are changeable afterwards and how? ...
Cubedj's user avatar
  • 363
4 votes
1 answer
343 views

Can someone share your geth export file with me?

I need to setup an archival node ASAP but the download takes around 1-2 block per second. With this speed it will finish in 2 months (if it doesn't stall, but it does, I have to restart it manually ...
Julius99's user avatar
3 votes
1 answer
34 views

Smart Contract/Nextjs Error: Returned values aren't valid, did it run Out of Gas?

I'm having an error while calling one of the function of the deployed contract from Next.js Error: Parameter decoding error: Returned values aren't valid, did it run Out of Gas? You might also see ...
Mohsin's user avatar
  • 31
3 votes
1 answer
27 views

What are the countermeasures for losses in decentralized finance platforms like Aave?

I am a newbie in the blockchain/Web3 space and trying to understand the AAVE protocol. Suppose a borrower deposits 1 ETH whose value is 500 DAI Tokens(500$) as collateral to borrow 100 DAI Tokens(100$)...
Hrithik Raj's user avatar
3 votes
0 answers
29 views

Query Transactions between date ranges with Infura

I need to query ERC20 and ETH transactions by a date range and not simply get a paginated batch at a time. How can I do this?
Brendon Rofe's user avatar
3 votes
1 answer
412 views

Working with huff contract in foundry (a few questions)

I'm trying to deploy huff contract in foundry to goerli testnet (it is deployed), BUT: Why is so that my runtime code looks like it was written in Solidity ? Is there a way to avoid this and create ...
obsessed's user avatar
3 votes
1 answer
127 views

Deploy Upgradable contract with factory contract

I have a simple contract below Swap.sol that is upgradable. // SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "@openzeppelin/contracts-upgradeable/proxy/utils/...
Haris's user avatar
  • 113
3 votes
0 answers
368 views

How should a dapp store & query user profile data?

We are currently working on a dApp that will store user profile data and let its users query them. We haven't been able to figure out how to do that efficiently so far, and therefore we need to ask ...
Ay3914586's user avatar
3 votes
3 answers
639 views

How can verify an NFT that I want to act as an access card?

Hey guys I'm trying to create a social group that has real world and cyber space meet ups. I wanted the group to each have an edition of a NFT that I create and they get. When at these events how ...
Imran Sikandar's user avatar
3 votes
1 answer
118 views

ERC721 "NFT" with ImageURL[] instead of single ImageURL

I am looking to create algorithmic NFT's that are built from multiple images. Rather than layering the images for all combinations and then storing all permutations I'd like to send an array of image ...
Thrasher66099's user avatar
3 votes
2 answers
461 views

How to run Chainlink Project using eth-brownie python

I had installed eth-brownie using command pip install eth-brownie after Brownie installed.I had bake existing Brownie project into a new directory. mkdir MyChainlinkProject cd MyChainlinkProject/ ...
Hassan ALi's user avatar
3 votes
1 answer
118 views

Blockchain Performance Metrics

How can I measure blockchain execution time, latency and throughput? Which API do I use to measure? Anyone suggest any article or book for me to read about the blockchain performance metrics?
Lucas Neves's user avatar
3 votes
1 answer
386 views

Are the timestamps of blocks for Ethereum only accepted when they are monotonically increasing?

Are the timestamps of blocks for Ethereum only accepted when they are monotonically increasing? If yes, why? And why other blockchains like Bitcoin and other blockchains with shorter block time can ...
Shulai's user avatar
  • 51
3 votes
0 answers
181 views

Zero Knowledge Range Proofs

I am new to the world of Zero Knowledge Range Proofs. I read the following on GitHub: https://github.com/ing-bank/zkproofs The Zero Knowledge Range Proof allows the blockchain network to validate ...
Heba Mohsen's user avatar
3 votes
1 answer
116 views

Understanding what happens between transaction creation and block creation in Proof of Authority

I am currently writing my thesis where I'm investigating the potential of blockchain technology to become the underlying technology in a system that is create and record qualifications. I'm at the ...
Gloire's user avatar
  • 131
3 votes
0 answers
472 views

Monitoring Eth Transactions and Syncing Native Database transactions with Etherium Blockchain

Currently, I have a node.js application which interacts with geth through web sockets. I have a listener, web3.eth.subscribe( 'pendingTransactions', function(err, result) { if(!err) { ...
piyush pruthi's user avatar
3 votes
0 answers
156 views

Parity create testing transactions and blocks

For test purposes, I would like to make test blocks including test transactions against main net. For example I would like to make a transaction that sends one ether from 0x1234567... to 0x99999999......
William Entriken's user avatar
3 votes
1 answer
311 views

Uncle blocks in Parity PoA blockchain

As I know that there is no competition for mining new blocks in POA blockchain as each node mines new block at its given time slot. I have a parity PoA blockchain setup with 5 nodes. While examining ...
Usman Anwar's user avatar
3 votes
1 answer
273 views

How many non-empty accounts are there?

I am researching into the statistics of Ethereum and I an looking for a datum of how many non-zero balance account currently exist in Ethereum? I know that in total 30M of accounts were created but ...
Nulik's user avatar
  • 4,001
3 votes
0 answers
286 views

Homomorphic Secret Sharing

Speaking of Ethereum blockchain, Is it possible to perform homomorphic secret sharing algorithmic calculations like SSS/pVSS/VSS on-chain? or should this be calculations performed off-chain
NemesisChain's user avatar
3 votes
1 answer
1k views

geth - admin,addPeer() and static-nodes.json don't work

I'm trying to connect two nodes (both miners) on my private network. They are based on the same VM in different data directories. They have different ports and are based on the same genesis file and ...
Billie XU's user avatar
3 votes
0 answers
485 views

SSL Support for Communication Between Geth Nodes

We are using private Ethereum network for a multi entity use-case. The problem is that all these entities geth nodes sits behind a firewall which only allows TLS traffic. The node that's broadcasting ...
Narayan Prusty's user avatar
3 votes
0 answers
650 views

In parity, how can I delete the last blocks I downloaded without corrupting the database?

I have found the blockchain data in parity. I go to overlayrecent folder and from there to the db folder. It looks like the blocks are the .sst files. How can I delete the last blocks I downloaded ...
tod87's user avatar
  • 163
3 votes
0 answers
556 views

How can i confirm transaction in geth from other peer of blockchain?

I have a query , I have create a private blockchain in which one geth node1 is use for transaction taking and other one(node2) is for mining .They are peered with each other and perfectly ...
Himanshu sharma's user avatar
3 votes
0 answers
182 views

Geth bus fatal error

My geth node (v1.4.18 on testnet) has unexpectedly go down throwing an error like this: I1028 04:46:29.305710 ethash.go:259] Generating DAG for epoch 44 (size 1442839168) (...
Juan Ignacio Pérez Sacristán's user avatar
3 votes
0 answers
212 views

Blockchain compression Suggestions

I am planning to do a course project on block chain compression so that network transfer time is optimized. I read somewhere that the EVM bytecode component of the blockchain can be compressed. Is ...
Ram's user avatar
  • 91
3 votes
0 answers
150 views

Updated geth, now I am re-syncing the whole blockchain

This is the first time I have updated geth. I was at a build of geth from several weeks ago, and this morning I updated to 1.4.12. I downloaded the pre-built binary to a new location on disk, ...
warmbeach's user avatar
  • 181
2 votes
1 answer
22 views

TypeError: Cannot read properties of undefined (reading 'checkUpkeep')

i'm getting this error while testing patrick collins smart-contract-lottery project, below is the part where the error coming from. describe("checkUpkeep", async function () { ...
Gautam's user avatar
  • 33
2 votes
0 answers
32 views

Implementing Verkle Trees in Solidity, Generating Proofs, and Using Zokrates

I'm working on implementing Verkle Trees and looking for guidance on how to implement Verkle Trees in Solidity. I have a working python code with implementation of verkle trees, proof generation and ...
Shrigouri's user avatar
2 votes
0 answers
107 views

Best practices for Hardhat deployment script?

As a newcomer in Solidity, I am trying to understand and create a deploy script that I will use for deploying my contracts. Stack: Ether.js + hardhat + javascript Here is the code that I came up with: ...
CC_Zio's user avatar
  • 27
2 votes
1 answer
26 views

An event with unclear purpose and data emitted in transactions

I've observed this in multiple txs I've looked at, so, here's a random one on Polygon Mumbai: link. It contains several emitted events, the last of which is this: What is this event and how to ...
Iaroslav's user avatar
  • 279
2 votes
0 answers
64 views

Convert FunctionMessage into ABI string using Nethereum

I want to convert FunctionMessage objects into ABI. Is there any function in Nethereum library to do this work or should I do it using reflection ? code example: [Function("balanceOf", "...
user19291301's user avatar
2 votes
0 answers
36 views

Speed requirement of Ethereum 2.0 node

It is said that Ethereum 2.0 will reach 100k TPS. Does it mean each node should be able to verify 100k transactions per second? Or the 100k transactions will be divided to 64 shards so each shard ...
luke's user avatar
  • 31
2 votes
2 answers
305 views

Configuring amountOutMinimum while swapping through Uniswap V3

I am trying to build a smart contract which performs a multihop swap using Uniswap V3 but wherever I have seen the tutorial, amountOutMinimum is set to 0. In Uniswap V2 there are several ways to ...
Mehul Tuteja's user avatar
2 votes
0 answers
826 views

TypeError: Cannot read properties of undefined (reading 'toNumber')

I'm receiving type error please help Test.js code const { expect } = require("chai"); const toWei = (num) => ethers.utils.parseEther(num.toString()) const fromWei = (num) => ethers....
Agneeshz's user avatar

1
2 3 4 5
22