Questions tagged [dapps]

Questions about applications and projects on Ethereum: a decentralized application (dapp) does not require any servers or backends and runs independent on a distributed blockchain.

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

Correct way to easily call function with web3j from deployed contract

I am trying to call a function from a modified ERC20 contract and I can't manage to make it work. I am doing this with web3j from Android. I can connect to Infura. The contract is already deployed on ...
1
vote
1answer
271 views

Is it possible to send ERC20 tokens to a smart contract that is written to accept payments..?

I have ERC20 compatible token that is already deployed in the ethereum main-net. I have a requirement to accept these tokens as payment, And this is going to be a new contract, The below are my doubts....
2
votes
1answer
225 views

Does it make sense to have a Node.js backend serving json to frontend for dapp?

Currently, the architecture I am looking at is that the smart contract (SC) sits on the ethereum network, but it is a complex and multilevel contract system. Just navigating through the tiers of the ...
1
vote
1answer
38 views

Both web3.eth.accounts.create() and web3.eth.personal.newAccount() not working

I'm making a dApp on reactjs. I wanted to create a new account and have done it trying 2 methods this.web3.eth.personal.newAccount() this.web3.eth.accounts.create() I have attached the code below(...
0
votes
0answers
9 views

Contract not deploying with web3

I'm writing a web-based DApp with web3, and am trying to get my JavaScript to deploy a contract. I've set up the abi, contract, and bytecode as follows: const trade_abi = [ ... not shown: ABI copied ...
0
votes
1answer
491 views

Deploying Solidity Contract Using Web GUI and web3

Any guide or step by step Tutorial for deploying a solidity smart using a GUI and accessing the meta mask account ? Please Help
2
votes
3answers
1k views

MetaMask verification on a server with web3.personal.sign

How to verify MetaMask account holder is the real owner of the address? I recently saw this post and tried it immediately, unfortunately, I am not getting the right result from the server. I think it ...
0
votes
1answer
228 views

If I set private blockchain, will the dapp be private only?

I have an ethereum private blockchain, and I need to build a web application, in which the content of blocks in private blockchain would be visible from anywhere after logging in on the web page. Is ...
1
vote
1answer
27 views

What are the steps of deploying a smart contract to the blockchain?

Are the above steps correct for deploying a smart contract to the blockchain: A node creates a smart contract The smart contract is converted to byte code The node creates a block out of the byte ...
0
votes
2answers
39 views

Why is a failed transaction included in the blockchain as a “failed transaction”

According to this highest upvoted answer, "but still include it in the blockchain as a "failed transaction"... What is meant by the term "gas"?
0
votes
2answers
17 views

How are Ethereum smart contracts deployed?

Im a little confused on how Smart contracts work on the Ethereum blockchain and with DApps. I'm confused with the structure of DApps using Ethereum smart contracts. Is just one contract created when ...
0
votes
2answers
76 views

How do I send NFT assets (ERC721 Tokens) from my Ethereum wallet to someone else?

I want to send my ERC-721 to my friend. Fast. Any suggestions?
1
vote
0answers
18 views

How to allow mobile wallets to sign and access to my dapp

I'm building a dapp application on Ethereum using React & Web3js. As usual the dapp will get the injected provider from Window.web3 (MetaMask), perhaps. The problem that I'm facing now is how can ...
0
votes
1answer
59 views

MetaMask - RPC Error: Internal JSON-RPC error

I am getting this error when i trying to use metamask on my local for a simple transaction from one account(say A) to another (say B). code: -32603 data: {originalError: {…}} message: "Internal ...
0
votes
1answer
104 views

Can't connect to localhost:8545 while using ethereumjs-testrpc web3?

I am developing a simple Voting dApp by following a tutorial. In this tutorial we are using npm install ethereumjs-testrpc web3 so that we can get the fake nodes of Ethereum. For that i first ...
4
votes
1answer
269 views

Truffle hangs forever with parity with PoA

I'm trying to create a private chain using parity (PoA) and truffle but when I do truffle migrate it hangs forever with the following output: > [ > { > "jsonrpc": "2.0", &...
1
vote
1answer
21 views

How can I create Ethereum wallet addresses that can be revoked after certain time? Is it possible to do that?

How can I create Ethereum wallet addresses that can be revoked after certain time? Is it possible to do that? I am trying to create temporary wallets for employees in a company for their company ...
0
votes
1answer
251 views

Update dapp after contract transaction is mined

I made a web app that interacts with a smart contract, using truffle unbox webpack. My contract has a variable called sum and 2 functions: one called answer that increments the sum variable after it ...
0
votes
0answers
26 views

Getting Metamask Error Message into web3.js DApp after user rejects transaction

I'm building a simple HTML/JavaScript front-end to interact with a Smart Contract using web3.js and MetaMask. I have a function to call one of the methods in order to send a contribution to the Smart ...
0
votes
1answer
16 views

what will happen to blockchain industry in India if cryptocurrencies are banned?

According to recent article India is very sure of banning cryptocurrency and most of the blockchains working today use cryptocurrency, so what will be there future as I am interested in blockchain ...
0
votes
2answers
384 views

Deploying a smart contract using DApp

I am new to the development of DApps on ethereum blockchain. I want to make a contract Management System in which users can generate their own tokens and crowdsale using my web application. I am able ...
3
votes
2answers
61 views

Alternatives to Metamask

What are existing alternatives to metamask with that works online inside existing browsers, that don't require installing a browser extension? What are some of the tradeoffs between them?
7
votes
5answers
1k views

When would it make sense to use node server for an application using smart contracts?

I am wondering if there are example cases where it would make sense to use a typical Node.js client-server app where the blockchain node would be running on the server. At first glance, this would ...
3
votes
3answers
2k views

How to verify MetaMask account holder is the real owner of the address?

I'm making a dapp that will make calls to a Node.js server. I expect the user to have MetaMask installed and I want to verify that he is the real owner of the current address on MetaMask (i.e. ...
0
votes
2answers
27 views

do users should be aware of smart contract of the dApp they are using?

So dApps are frontend + contract. Users interact with smart contracts via frontend. Do users i.e. people should be aware of how the contract is designed while using any dApp? are their any risks of ...
0
votes
2answers
62 views

Checking if Contract Withdrawal Is Allowed

I am trying to conceptualization how a specific kind of smart contract would be written. The contract would basically handle deposits and withdrawals of ETH or some sort of ERC20 token. The balances ...
0
votes
1answer
289 views

Factory Contract Function is not creating New Contract using testrpc and web3

I am new to DApp development. I have deployed a TokenFactory contract and that Factory contract has a function "Create New Token" that generates a new token contract. The function "Create New Token" ...
0
votes
3answers
34 views

condition check of struct mapping in solidity?

struct User { string username; string password; address userid; bool isAdmin; } mapping (uint => User) users; function checkIfUserExists(address userid) public ...
0
votes
3answers
587 views

Create a DApp using Geth

I need to create a sample DApp from scratch within a private blockchain using Geth. Can anyone post links of sample apps which have been made in such a way for reference.
0
votes
2answers
605 views

How to use a private network in geth?

I am following this answer: How do I set up a private ethereum network? but my result of miner.start() will return null Is it because my geth version is 1.6.6-stable? Also welcome any beginner's ...
0
votes
1answer
26 views

Why Should I use Ethereum in an Online-Election(Vote) System based on ZKP(Zero-Knowledge Proof)?

I am an undergraduate student studying Ethereum in South Korea. Currently, I am developing an online election system that can be applied. At first, I came up with this idea: The system has an ETC ...
1
vote
1answer
3k views

getting error nonce too low , but nonce is proper stuck since one day

I am working with web3.js since sometime now , but now i am stuck with nonce too low error , the nonce is proper also i have checked private key and other addresses , they also seem to proper , ...
0
votes
1answer
12 views

Is allocating a portion of tokens to the dapp creator after a crowdsale a bad business move? [closed]

Will this lessen the integrity of the dapp? Will people trust the company less?
0
votes
2answers
16 views

Why would outside investors invest in a ethereum dapp? [closed]

I saw today that outside investors put millions into the Minds social network. I thought dapps had no real way of making money? What are the investors actually investing in? -the website that wraps ...
0
votes
1answer
29 views

What layers of a Dapp can be written in a regular high level language vs a niche one like Solidity?

I just saw that the Minds social network (a ethereum dapp I believe) is written in PHP. Their codebase is huge and I'm having trouble finding where their Smart contracts are written/how they are ...
0
votes
1answer
47 views

Getting error on sending ether/wei in payable function

error: transact to CampaignFactory.createCampaign errored: VM error: revert. revert The transaction has been reverted to the initial state. Note: The constructor should be payable if you send value. ...
0
votes
0answers
24 views

Payable function not working properly

Hi everyone hope I will be clear enough with the explanation because I couldn't find a proper solution. I am just trying to checkout an item with my buy function but it seems like I am stuck.Here is ...
0
votes
1answer
42 views

How does drizzle know when contract state has updated and reflect that state in the store (when a value has been `cacheCall`ed)?

Basically could someone provide a more technical explanation of this? It says that it watches(subscribes to) for block headers and when comes in it "through the transactions looking to see if any of ...
3
votes
0answers
125 views

account unlock with HTTP access is forbidden [duplicate]

I am using in the geth console and there is a similar error. Do I add "--allow-insecure-unlock" when I "init a node"? personal.unlockAccount(eth.accounts1) Any suggestion would be helpful. Thank ...
0
votes
1answer
18 views

can't get struct in return

I am trying to execute unit tests for a solidity smart contract: I have: mapping (bytes16=>Device) public Device_Table struct Device { bytes16 UUID; bytes16 hardware_UUID; string ...
0
votes
1answer
21 views

Why am I getting a Parse Error in my smart contract after the constructor?

I'm writing a token sale smart contract & my original error was my function had the same name as the contract and I changed it to a constructor because the contract cant have the same name as the ...
1
vote
1answer
1k views

How do I automatically mint ERC-20 Tokens Every time the owner wallet transfers coins

I want to start with a total_supply of 1,000 Tokens in the owner wallet. Each token will represent a gram of gold. Every time 1 token is transferred from owner wallet to another wallet, the owner ...
1
vote
1answer
354 views

how to call function in proxy contract

https://github.com/rayonprotocol-research/solidity-upgradable-contracts/blob/master/contracts/Proxy.sol I'm practicing proxy pattern but i dont know how to call function at logic contract from proxy ...
0
votes
1answer
40 views

getAccounts in web3 js undefined

I am working on dapp with web3js 1.0.0.37-beta with reactjs. I got blank in web3.eth.getAccounts. Following is my code App.js import React, {Component} from 'react'; import '../node_modules/...
1
vote
1answer
263 views

Watch pending transactions with ethjs.js

I am trying to use ethjs.js to listen to pending transactions, but nothing really worked. Does anyone have a working example fetching pending transactions with ethjs.js? I have tried the following: ...
0
votes
1answer
103 views

Serving DApp on webserver or IPFS won't work

I can succesfully run the webpack truffle box on my webserver, but if I try to run a DApp which I made by using the pet-shop truffle box as template, I can only use it on localhost. When I upload the /...
0
votes
1answer
17 views

Can i use a the msg.sender which is a address to call a function of the contract?

I am trying to mint a ERC721 token using openzeppilin/contracts. It was working correctly, but later had to change the design. So now i am forced to use the msg.sender who is the minter to call the ...
1
vote
2answers
35 views

Decentralized Time server to get time in Dapps? [closed]

So basically i want to ask that how can we programmatically get the accurate, exact and current time in a DApp, without relying on the system's time or a centralized time server ? Is there a ...
0
votes
0answers
10 views

Prompt Metamask to send eth with Web3

I understand this as the pattern to send a transaction with web3: web3.eth.sendTransaction({ from: myaddress, to: toaddress, data: web3.eth.abi.encodeFunctionSignature('whitdrawETH()') ...
0
votes
1answer
44 views

Best options to host an ethereum react dapp to a custom domain

I'm looking for best options to host an ethereum dapp created using react and drizzle, with the following requirements: It needs to be hosted in a custom domain (.com / .net / OR .io ) that I have ...