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
0answers
14 views

Factory.On pair created event not launched

I'm using Factory.on("PairCreated", async (token0, token1, addressPair) to get all tokens pairs when liquidity is added. It seems to work fine as I see pairs coming, but I made a test on a ...
1
vote
1answer
16 views

What are the common ways to protect access to web3 provider?

Most dapps require an instance of web3 provider in the browser. It seems that it is often achieved by directly connecting to Infura or Alchemy node URL (for example, in WalletConnect docs: https://...
0
votes
0answers
10 views

What is your opinion for decentralized social media for cryptocurrency users should be

Vitalik has talked about the potential of decentralized social media for cryptocurrency users. So, I would like to ask cryptocurrency users what is your opinion for decentralized social media for ...
0
votes
0answers
5 views

Uncaught Error: Cannot find module 'web3-eth'

const ethereumButton = document.querySelector('.enableEthereumButton'); const showAccount = document.querySelector('.showAccount'); ethereumButton.addEventListener('click', () => { getAccount(); })...
0
votes
0answers
10 views

Switching from web3 after MetaMask breaking changes not working

I've taken the past week off from working on a project and lo and behold I come back and changes to MetaMask have been made where using web3 no longer works. I have been trying to switch my code over ...
0
votes
1answer
22 views

How to bypass the pre-flight checks when sending a tx with ethers?

In my dapp, I have the following flow: Create an empty transaction array. Check if the ERC-20 allowance is sufficient and, if not, append a token approval tx to the array. Append the token deposit ...
0
votes
1answer
41 views

Is it possible to have several instances of Web3 object in the same dApp?

I need to access two smart contracts through two different providers in the same app, is it possible to have two instances of Web3 in the same dApp. Something like this: const web3 = new Web3(); const ...
2
votes
2answers
70 views

Free and public Ethereum JSON-RPC API nodes

I would like to create my own wallet system but I don't have enough funds to run my own node yet. If I would like to borrow a public node to process the account creation, retrieve a public key and ...
0
votes
2answers
18 views

Is there any api service for showing portfolio performance of ethereum address

I am working on dapp where i have to show portfolio performance of ethereum address. Can someone suggest me an api service which gives me all historic data of ethereum address show that i can plot a ...
0
votes
0answers
84 views

Understand price impact and liquidity in pancakeswap

I am trying to understand how the price impact and liquidity was calculated in uniswap or pancakeswap through the router contract? UNI Router: https://etherscan.io/address/...
1
vote
1answer
284 views

How to get the ERC-20 token balance of an account using etherjs?

I want to get the ERC-20 token balance of an account using ethers.js. Could you help me?
0
votes
0answers
12 views

Best practice for file storage on React Dapp

I'm currently building out my first Dapp and using React on the front end. An aspect of the Dapp will involve users being able to upload documents such as logos and descriptions. I know storing these ...
1
vote
1answer
906 views

How to read public variable from contract using ethers.js

I am trying to read public variable from contract on chain using ethers.js. Calling the methods work but I could not manage to read public property (without getter). The methods works like this: const ...
1
vote
0answers
23 views

Need Help with a University Project to make a DApp

I want to make a DApp which stores information of people who have taken the COVID vaccine. Information to be stored will be: Name of the Person Date of Birth Some Form of PIN Provided by the ...
3
votes
1answer
568 views

How to automatically add a custom token to MetaMask with ethers.js

I was playing around with creating BEP-20 tokens on cointool.app and noticed that whenever you generate a new token and pay the gas fee to mint it, the website automatically prompts you to add this ...
1
vote
0answers
13 views

Where to outsource smart contract developers, and how to manage them as start-up's CEO? [closed]

If someone has an idea for a DApp, but needs to hire programming muscle, where online can reliable and innovative smart contract developers be found for hire and outsourcing? and what etiquette and ...
2
votes
0answers
18 views

Is it conventional to host your dapp on a subdomain (e.g. app.uniswap.org), and why?

I've noticed the design pattern of having an enter app button from the home/landing page which opens the dapp in a new tab is quite common. This is something that I don't see in Web2 design. Is there ...
0
votes
1answer
81 views

Problem to connect my DAPP to Rinkeby smart contract

I make small samart contract using Remix and Ganache. I deploy it to Rinkeby test net and got problem to connect my dapp (small web site) to it. My web3 require. window.addEventListener('load', ...
3
votes
1answer
54 views

Link a library to a smart contract only with Solidity and bytecode

I work in Truffle development environment and use Windows PowerShell. My Solidity code is a test code and is simple. There is a library called Alireza that just compares two uint values. There is a ...
0
votes
1answer
30 views

Get token standard type knowing the contract address and tokenId

How can I implement code that returns whether a token is in the ERC721 or ERC1155 standard, knowing both the contract address and the tokenId? What I tried is that I call a function that exists only ...
0
votes
1answer
25 views

Get quick access to assets, events

How do sites like Opensea get all their data so fast? Because getting the data from the blockchain and fetching the tokenURi's takes a lot of time. So I thought they might store all the assets, events,...
0
votes
1answer
49 views

Fetching token metadata from token URI

Is there an efficient way to get the metadatas of a list of token uri's? Like, what if I have a list of 50 token Uris, would the only way be to send a different get request to each url?
0
votes
0answers
23 views

Is it possible to do transactions in Ethereum without gas fee?

I have developed a DApp to store various asset details. Obviously, for storing each asset detail we have to pay some amount of transaction fee for it. One of my teachers said to me that Since ...
0
votes
1answer
73 views

How to get Ether in private blockchain?

Fast summary: Need a faucet-like funcionality in my private blockchain to give Ether to the newly on-demand created wallets from Android Dapp. I'm working in a project where I've deployed a totally ...
1
vote
1answer
39 views

Trying to burn 1% off each transcation

Can anybody show me how to add a code for burning %1 of each transaction? https://github.com/strainzeh/MADToken/blob/main/MADToken.sol
0
votes
0answers
31 views

Selling NFT's, buyer calls minting function, how to call transfer function?

I'm implementing a dApp to sell NFT's. I want the buyer to call the function on my smart contract to mint the NFT so that they pay for the gas fees. However it seems like they can't then transfer that ...
2
votes
1answer
134 views

As a CS student, where should I start to learn Ethereum development?

I'm a cs student looking to learn ethereum development. I'm very confused about all the things I need to learn. Smart contracts are programmed in solidity but if I want to build any kind of app I will ...
0
votes
0answers
14 views

Hello, I am new to dapp development, I am trying to start a geth node on android

but my application crashes after launching it, here is the error it tells me in my logcat In my MainActivity.java Blockquote public class MainActivity extends AppCompatActivity { //private ...
2
votes
2answers
1k views

Error: Transaction reverted: function call to a non-contract account

I've been trying to debug this for the past 2 days, it has driven me insane. I'm getting this error when testing my contract: Error: Transaction reverted: function call to a non-contract account. It's ...
0
votes
1answer
19 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
26 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
37 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
52 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
80 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
53 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
56 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
254 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
30 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
53 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
23 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
44 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
100 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
349 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
61 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
459 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
70 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
1k 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
68 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
3k 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
27 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> ...

1
2 3 4 5
14