Questions tagged [dapp-development]

Questions regarding the development of decentralized applications (a.k.a. DApps). This can include everything from frontend development questions to interaction with the blockchain and distributed file storage.

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

Display tokem amount in dollar in dApp frontEnd

How do I return token amount in USD using web3js ..or is there some kindof API to be used ? For instance , say user has 3ETH and also want the user balance to show in USD just as metamask does
2
votes
1answer
12 views

Calculating AAVE intereset rate belonging to different users that transferred into a smart contract

I have a smart contract that accepts user funds and adds them to an AAVE lending pool (DAI for example). Something like this: lendingPool.deposit(stableCoinAddress, amount, address(this), 0); As you ...
1
vote
1answer
24 views

Which are the steps that a developer follows to develop a DApp?

I would like to know if based on your experience, the following steps are correct in order a developer to develop a DApp from the start to the end. Steps: Create an Externally Owned Account (EOA) ...
0
votes
1answer
16 views

Why do web3 dApps need servers?

I see a lot of projects run into server capacity issues at launch (token sale, nft launch, etc). [1], [2] What reason(s) would require these projects to have a server, versus deploying a static ...
0
votes
0answers
9 views

Deploying Goose Finance Front end and Connecting it to Smart Contracts

I recently learned the fundamentals of Solidity and had some smart contracts deployed on testnets using truffle. Also, I've done a simple dapp by finishing dapp university tutorials on youtube. ...
0
votes
1answer
19 views

How can tether issue new coins on the Ethereum and tron chain?

I am trying to create a decentralized version of a money transfer service and I want to build it on the tron network. The problem I am facing is that I need each token to start selling for a certain ...
0
votes
1answer
22 views

Funding contract with LINK tokens revert error

When I try creating a Chainlink contract from "master contract" and fund it with LINK, I keep getting the error: "VM error: revert. revert The transaction has been reverted to the ...
0
votes
1answer
31 views

Connecting to Geth private network from Metamask using RPC URL

I have created a private chain in Geth which is running in machine1. I want to connect to the private chain running in machine1 from machine2's Metamask using rpc. machine1 and machine2 are connected ...
1
vote
1answer
25 views

Is there any advantage or disadvantage of using javascript over solidity when building dapps on etherum?

I am aware that there are libraries that let you build dapps on ethereum. What are the pros and cons of using javascript over solidity for dapps. I know this might sound like a partly subjective ...
1
vote
0answers
43 views

Cryptocurrency is not viable for mass-market application? [closed]

The Idea I am new to cryptocurrency. I am writing an app/game that has its own marketplace for digital items. I have an established userbase of around 120,000 users of which 6,000 are paying customers ...
2
votes
1answer
17 views

JSON UTC to Web3 provider

We are using @truffle/hdwallet-provider [1] to sign transactions when deploying smart contracts on Besu. All the provided examples left the private key or the mnemonic in plain text in the truffle ...
0
votes
1answer
20 views

How to create a Payable function that only accepts a customer token?

I've got a question that I cannot seem to find an answer for, hoping the community can help (and this is my first post here so my apologies if this is the wrong question to ask in the first place). I ...
1
vote
1answer
27 views

How to recognize if a website is a DApp?

A Launch App button often appears on the top-right corner of Ethereum-platform websites. Is this an indication that a link is a link to a DApp (decentralized application)? Are the following two ...
1
vote
0answers
77 views

Issue in Integrating metamask to chrome browser in mobile

I am trying to create an DeFi app by integrating the MetaMask wallet. Desktop The DeFi app works fine with the MetaMask integration Mobile I have my MetaMask setup in my Android mobile. When I tried ...
0
votes
0answers
30 views

Error: *** Deployment Failed ***

I am trying to deploy my contracts, but I keep getting the same error message: Deploying 'Migrations' ---------------------- Error: *** Deployment Failed *** "Migrations" -- sender ...
0
votes
2answers
176 views

Cannot find module react-bootstrap/lib/Breadcrumb

I'm trying to figure out an issue with this tutorial that i'm following, whenever I try to use truffle test within the CMD in the defi-tutorial folder, it comes up with the issue in the header, cannot ...
0
votes
0answers
31 views

Ethreum web3 dapp vs ionic Dapp?

For a school project I am making an ethereum Dapp on ionicwith banck-end on Nodejs. I Cannot find a way to use metamask on my mobile Dapp because it is not a web3 dapp. Any suggestions, is there any ...
0
votes
1answer
340 views

Metamask stopped innjecting Web3. How to inject Web3.js properly?

I've been running a Django application which allows users to sign up/log in using Metamask. Everything worked great until recent breaking changes: In early 2021, MetaMask will no longer inject the ...
0
votes
1answer
19 views

What node(s) does Ethereum broadcast a transaction first? How is it determined?

When I as a user make a transaction, where or what node(s) does it get sent to first? How does an Ethereum node, in terms of implementation details, determine that? Does it send a new transaction to, ...
1
vote
1answer
494 views

How does “swap” work between ERC20 tokens? And what is “swap”?

What is "swap" presicely between ERC20 tokens? Is it exchanging one ERC20 token for the other without fees, in the most possible native way? How is it different from "convert"? Let'...
0
votes
0answers
21 views

Display the user object array in react app using drizzle

I have been trying to do a simple use case where we return all the user details please find my code myComponent.js <div className="section"> <h2>JurStatus</h2> ...
0
votes
0answers
271 views

Cannot find module 'fs-promise' Error when importing a smart contract instance

I get this error when I try to open a page in the DApp I'm developing. Error: Cannot find module 'fs-promise' Require stack: - /Users/eimanalwahhabi/Desktop/RecycleChain/node_modules/swarm-js/lib/api-...
0
votes
0answers
16 views

What is a better way to use whisper to implement a chat room?

I want to use whisper to implement a chat room in my dapp. I learned about whisper, if you want to realize the function of private chat, you need to know the public key of other people. For a user who ...
0
votes
1answer
87 views

Storing hash on blockchain (hash of image stored on ipfs)

I am creating a dapp using react to store image on ipfs and the corresponding hash on blockchain. The purpose of storing hash on blockchain is timestamping, proof of ownership wtc and i wish to ...
0
votes
0answers
17 views

Call Smartcontract

I am working on an assignment to make a dapp. I am now preparing to generate a website via html. The problem I run into is that the buyToken function is not being called correctly yet <!DOCTYPE ...
1
vote
1answer
393 views

Best way to go about connecting multiple wallets to Dapp

What I want: A user to connect a wallet to my dapp (1 of 4 choices, say: Metamask, WalletConnect, Formatic and Portis). The flexibility to create a custom "wallet connect modal" (I've tried ...
0
votes
1answer
57 views

Metamask Wallet Change in Dapp

I wonder something about the usage of the metamask wallet for Dapp. I have implemented an Authentication mechanism to my Dapp with Keycloak, and I ask for blockchain wallet addresses of the users in ...
0
votes
1answer
39 views

High level tool (autogenerated UI) to obtain all the events emitted by the contract?

I'm pretty sure something like this exists, saw it somewhere in the wild, my Google skills need some StackOverflow boost... I would like to provide two data points: contract address name of the event ...
0
votes
1answer
38 views

How I compile dapp in browser just like I used to compile my Visual Studio code using xampp in my browser?

Whenever I create/ edit some project on my Visual studio code, I put it inside htdocs of xampp folder. Then I start Xampp control panel and give it some localhost port number so that I would compile ...
0
votes
0answers
51 views

How to show token balance from a ETH address in my Android App?

I have an Android App and I want to show the balance of an especific token of the user wallet Address IE: show how many CHAINLINK are holding the user on his wallet Thanks in advance
1
vote
0answers
61 views

Stuck at “ipfs process started” after running embark

I ran the following commands, embark demo cd embark_demo embark run embark info invoked /home/k00lawn/.nvm/versions/node/v10.17.0/lib/node_modules/embark/bin/embark embark info located /home/k00lawn/...
0
votes
0answers
22 views

Negative integer function

I have the following problem, one of my function has a variable where the uint can be negative but I don't know of that before the user enter in the form the integer. How do I settle this problem ? ...
0
votes
1answer
615 views

“Migrations” — sender account not recognized

This is my truffle.js i've removed the credentials marked as * var HDWalletProvider = require('@truffle/hdwallet-provider'); var fs = require('fs'); var infura_apikey = "*" var mnemonic = &...
0
votes
1answer
225 views

How to set values for Solidity contract state variables from JavaScript front-end?

I am trying to set values to the following contract public state variables from a frontend javascript code. But it seems not working. Contract public state variables: // Current state of the auction. ...
0
votes
1answer
26 views

how to check instantly when a user charges amount to his address generated by our app

Our app needs to detect and create a charging order asap whenever a user charges an amount of ETH/USDT(ERC20). Due to the limit of infura API, we decided to set up our own ETH nodes and use JAVA to ...
0
votes
1answer
289 views

Compilation Error

Hi guys I got this error when I try to compile using truffle develop. truffle(develop)> compile Compiling your contracts... Compiling ./contracts/StarNotary.sol /mnt/d/Blockchain/...
1
vote
1answer
236 views

Check if Metamask was just installed after asking the user to do so

In an effort to make my dApp more user-friendly, especially for onboarding, I'm trying to guide new users into installing Metamask. If no web3 provider is present, I show the user a "Create your ...
2
votes
1answer
576 views

Signing a message to sell NFT/token - what happens if you transfer the NFT later?

If you sign a message with intent to list an NFT/token for sale - how does that work if you transfer the item later? For example on an NFT marketplace - you list your NFT for sale by signing a message....
2
votes
1answer
723 views

Building a raw contract transaction with ethers.js

Can't find any good documentation on creating a raw transaction with contract data in ethers.js. The equivalent in web3 is adding the encodeABI on the data property. Any guidance on this? This isn't ...
1
vote
0answers
26 views

where to host express api that communicates with smart contract to be fully decentralised?

I need to host express api that communicates with smart contract to be fully decentralised. Any to host it decentralised.
0
votes
1answer
59 views

where to host my react fornt end and express endpoint that interact with smart contract to be fully decentralised?

where to host my react fornt end and express endpoint that interact with smart contract to be fully decentralised. Are there any option to host it decentralised any cloud provider other than ...
2
votes
1answer
83 views

blockchain oracles to communicate with external api via smart contracts?

Is there is any other oracles other than provable or oraclize to communicate with external api via smart contract.
0
votes
0answers
23 views

contract.deployed() not working when trying to submit an html form

i am using web3.js to communicate with my smart contract. how ever, when i try to submit the html form, and then use contract.deployed(), it isnt working below is the code.Html <div id ="input" ...
0
votes
0answers
619 views

how to match python list and integer to solidity smart contract uint256[] and uint256. web3.py

web3.exceptions.ValidationError: Could not identify the intended function with name `storeSurvey`, positional argument(s) of type `(<class 'int'>, <class 'list'>, <class 'numpy.ndarray'&...
0
votes
0answers
40 views

How to deploy my java web app on ipfs?

How to host my java web app onto decentrailsed network like ipfs as my web need a web server like tomcat to run and serve the dynamic content so how can i install tomcat on ipfs and push my war in it ...
2
votes
2answers
306 views

Building a mobile DApp without a full node?

I'm new to blockchain and Ethereum and have a few questions: Does Apple's App Store allow mobile DApps other than wallets and browsers? Is it possible to build a mobile DApp that runs on your mobile ...
0
votes
1answer
32 views

How to find private key on build.secondstate

I'm a beginner in ethereum application developing. Actually I started some days ago with a book and now I tried to build my first smart contract using BUIDL, actually at this site: https://buidl....
1
vote
1answer
96 views

Uncaught TypeError: Cannot read property 'fromWei' of undefined, working good in one tab and failing in another tab

I'm getting this error when I'm trying to convert Wei to Ether using the code window.web3.utils.fromWei("200000",'ether'). This error shows only on the single page and when I console.log in the same ...
1
vote
1answer
122 views

How to deploy blockchain app in heroku

I want to deploy my blockchain app in heroku and i just want to use ganache as my blockchain network. is that possible?
0
votes
2answers
30 views

How can I change the state of a contract if it's stored on the blockchain

Doesn't that contradicts the whole idea of blockchain that data stored there is immutable. If someone can alter the data stored in the state of the contract then how is it any different from any other ...

1
2 3 4 5
13