A decentralized application (Dapp, dApp or DApp) is an application that is run by many users on a decentralized network with trustless protocols.
Questions tagged [decentralized-applications]
259 questions
16
votes
2 answers
Is Git distributed or decentralized?
I know git used version control to track files. And it is also distributed, meaning more than one computer stores the relevant files. But my doubt is if git is distributed or decentralized? If it is decentralized, then why do we need github, gitlab?…

hrithik gautham TG
- 452
- 3
- 8
10
votes
4 answers
Where actual blockchain state data stored : in memory , in file or in database?
I have a query, where do blockchain data saved in every node. After a long search in google, StackOverflow, and some blogs, like got many answers: like: it saved in a database like level-DB or rocks-DB, some said it saves in memory in a variable,…

subhadip pahari
- 799
- 1
- 7
- 16
9
votes
1 answer
Module not found: Error: Can't resolve JSON
I've commanded npm run dev to run my code. However, it pops up several errors the first error it pops up is Module not found: Error: Can't resolve '../../build/contracts/User.json' I don't know why it pops up this Error, since in my…

Jessie
- 1,155
- 3
- 16
- 27
7
votes
2 answers
difference between interface and abstract contract in solidity
I am learning solidity and got to know that interface and abstract are both classes that may contain unused functions.
My doubt is: What is the difference between interface and abstract contract in a solidity smart contract?

aakash4dev
- 774
- 4
- 13
7
votes
5 answers
How to properly use revert reason in web3.js to show meaningful error message in UI
I want to use web3.js to show revert reason to user, for example in the case of user trying to mint erc721 token that has already been minted. I am using try catch block and see the error message but I want to isolate the error message to show the…

Anas Shad
- 179
- 3
- 11
6
votes
2 answers
IPFS can't really enforce nodes to delete an uploaded file, isn't that a problem?
As this decentralisation wave is taking place around the digital world, I was wondering how can you remove some content that you just uploaded on a decentralized network.
As I understand, more and more people want to have decentralized services,…

Alex Simion
- 131
- 3
- 10
6
votes
1 answer
How to use IPFS to store application state (as a backend for dApp)?
I am just starting with IPFS and Ethereum. We are building a dApp (mobile) and planning to replace the standard API & DB layer with IPFS and Ethereum. So, after lots of reading I have the following questions,
Making dApp directly talk to IPFS (via…

KayKay
- 553
- 7
- 22
5
votes
2 answers
How to connect useDApp to Rootstock networks?
I am creating a React.js DApp which will interact with Rootstock (RSK) deployed smart contracts.
Recently I came across a React library called useDApp. This library automates the blockchain connection, smart contract interaction and sending…

Juan José Sarasola
- 303
- 1
- 4
5
votes
3 answers
Couldn't import web3 library in react application
ERROR in ./node_modules/cipher-base/index.js 3:16-43
Module not found: Error: Can't resolve 'stream' in 'C:\Users\Sumana\Desktop\Web3\web3app\node_modules\cipher-base'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules…

Sumana
- 51
- 1
- 3
5
votes
1 answer
How to define an array of structs return type in ethers.js ABI
Currently I got this abi:
const stakingAbi = [
'function getStakes(address user) external view returns (Stake[] memory)',
'function stake7Days(uint128 _amount) external whenNotPaused',
'function stake14Days(uint128 _amount) external…

Thimma
- 1,343
- 7
- 33
5
votes
1 answer
Is it possible to host Node JS applications to IPFS? Possibly through Fleek?
Is it possible to host Node JS applications to IPFS? Possibly through Fleek? I know it's possible to host React JS app on IPFSA Using Fleek, but is it possible to host or run a Node server on IPFS, or is there any other decentralized way to host a…

ChivalrousRoot
- 81
- 4
4
votes
3 answers
How to get the returned data from a smart contract function using ethers.js?
I'm trying to consume a function from a smart contract using ethers.js. The function retrieve the info of a user logged before (with the help of other function). This is the function snippet.
function getUser(address _userAddress)
public
…

0x55b1E06FF
- 538
- 1
- 9
- 24
4
votes
1 answer
Get require() message error from a smart contract in Ethereum
I'm starting to learn Solidity and how to interact with smart contracts within a Dapp, and I would like to know how can I log/handle errors from the contract in my Dapp.
For example, in the Dapp I have a button, when you click it, it runs a function…

Rod
- 349
- 3
- 10
4
votes
2 answers
Metamask stopping to inject web3.js
As we know, metamask will no longer inject web3.js starting Jan 13, 2020. What are the approaches we should take to stop the dependency on web3?
Also how can we test it out with the existing Metamask that is injecting web3.js as of now.

Rahul Manas
- 43
- 1
- 4
4
votes
1 answer
Does Apache Cassandra provide measurements that can be taken to prevent data vandalization (malicious nodes)?
We're working on a big school project with twenty people. The case is a decentralized anonymous chatting platform. So we're not allowed to set up a central server, therefore we were looking into distributed databases and found Cassandra to best fit…

DFSFOT
- 536
- 3
- 19