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
0
votes
1 answer
Generate DID in ION SIDETREE testnet
I have succeeded deploy the ION SIDETREE testnet.
I followed this install instruction. But when I created DID, it returned DID for mainnet.
I don't know where it's wrong.
Here is my configuration:
Step 1: I run bitcoin with this…

ThanhLam112358
- 878
- 1
- 20
- 51
0
votes
1 answer
I am unable to run truffle commands in my terminal after installing truffle on my Mac, the result is always zsh: command not found: truffle
I have node v14.17.0 and npm v6.14.13 installed. Their commands seem to be working fine. I've seen other people with this problem but no clear answer on what should be done within the terminal to recognize the truffle commands.

d2vin
- 11
0
votes
0 answers
Test for successful transaction in Ethereum
I am attempting to create a button on my dapp to send Ethereum. I would like to log a bit of the data in my own database after the transaction is successful. I don't want to log the data in my db until AFTER I know the transaction was successful. Is…

Argon
- 13
- 2
0
votes
1 answer
How use walletconnect for tokens transaction
I'm using wallet connect for Eth transaction in my app.
but now need transact an ERC-20 token and don't know how do that
0
votes
1 answer
Web Application doesn't communicate correctly with Ethereum smart contract deployed through Truffle
I coded this really simple smart contract in Solidity which allows users to add todo tasks to their personal list, to fetch their list of todos, and so on.
pragma solidity ^0.8.0;
contract ToDo {
struct Task {
string content;
…

Gian
- 327
- 2
- 8
0
votes
2 answers
Understand price impact and liquidity in uniswap
I am trying to understand how the price impact and liquidity was calculated in uniswap through the router contract?
Router Contract: https://etherscan.io/address/0x7a250d5630b4cf539739df2c5dacb4c659f2488d
Is there is any direct method or what…

Aadhavan G S
- 87
- 1
- 2
- 18
0
votes
1 answer
What is the best way for a smart contract to constantly listen to a price feed and execute immediately once a price is reached?
I have compiled a smart contract that is supposed to take bets from 2 addresses, a bet creator and a bet taker. The bet is on the price of ETH/USD (via ChainLink).
What would be the best way to for the smart contract to listen to the price of…

Teo
- 97
- 1
- 9
0
votes
1 answer
What is a starting point/template to build a decentralised app for Ethereum
I am interested in building decentralized apps on ethereum and am wondering about the common libraries being used. For example, I've heard of whisper and swarm but the tutorial I got them from was over three years old and I'm just wondering if…

matt
- 213
- 4
- 7
0
votes
0 answers
How to calculate LP token worth
I am trying to implement my own USDC liquidity pool that allows various users to deposit USDC into it to earn a fixed interest rate based on how long they park the USDC in my pool (meanwhile I will use the USDC for other things) But I am trying to…

1977
- 2,580
- 6
- 26
- 37
0
votes
1 answer
Error: Returned error: VM Exception while processing transaction: revert SafeERC20: low-level call failed
I have written a smart contract which the purpose of swapping via 1inch exchange. I have deployed the contract to a locally forked mainnet using ganache-cli and successfully pre-funded my contract. However, when executing the swap function, the…

Ledersocke2015
- 11
- 2
0
votes
1 answer
Is there best practice solution to store draft data out of blockchain in dapp?
I use ethereum platform for develop dapp. And I need to store some draft data out of blockchain before push it to network . In this case can I use smart contracts or store draft data in db or store it in localStorage . Which solution is good ? Or…
0
votes
1 answer
Hyperledger Fabric Node SDK server deployment
I want to clear up some confusions I have about Hyperledger Fabric and its decentralization.
In production, I want to have a React website and maybe a React Native application to reach the blockchain, and about 3 or 4 organizations with multiple…

guillesanz21
- 13
- 5
0
votes
0 answers
Blockchain Application Architecture: UML & Use Cases
For my internship, I need to implement a blockchain based solution to manage a drug supply chain. The management of this supply chain implies to track-and-trace (geolocate) a drug on the chain, but also to monitor the storage temperature to see if…

Tameiki
- 45
- 1
- 9
0
votes
1 answer
Is there a way to access the account used for the deployment process in Ganache?
I am building a decentralized application and the embedded smart contract contains a function, which can be called only by the owner of the smart contract (i.e. the account that initiated the deployment process). I am using Ganache, which comes with…

Spielzeug
- 37
- 4
0
votes
1 answer
is the Digest of Prepare messages is that of a replica or is it the same signature of the pre-prepare sent by the primary in PBFT?
im learning PBFT From this paper osdi99 Pbft which is the original paper that proposes the protocol
after the primary sends a pre-prepare message the replicas would create a prepare message that includes a digital signature
so im wondering if this…

ezio
- 359
- 2
- 13