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
1 answer
14 views

smart contract exclusive for an app

I created a Smart Contract and a Dapp that Mint some NFTs, however I would like to be able to create: interact with my contract, only through my application. Does anyone know if it's possible? I didn'...
0 votes
0 answers
20 views

What is the best way to store and validate data on Ethereum BlockChain?

I am new to Web3 Development, therefore if I have a wrong concept of anything kindly do explain. Background So, I am creating a DApp that will have 2 main actors namely: Issuer ( Certificate issuer ) ...
0 votes
0 answers
4 views

What is the difference between 'watch' and 'cacheOnBlock' in the WAGMI library

I'm using WAGMI in a web app and I'm seeing some slowness in having read values updated in my app when the blockchain state changes. Looking at the docs, I see two potentially relevant options in the ...
0 votes
1 answer
27 views

How to get balance from a chain different than the one currently connected?

I am building a small bridge in order to learn about web3 and I would like to show the balance from the destination chain/network. For example, if I want to pass Ethereum from Ethereum mainnet to ...
0 votes
0 answers
16 views

How to delay calling a function until a smart contract transaction is completely done? [duplicate]

I’m calling a function that creates an instance of a smart contract. I have another function that uses the address of that smart contract as an argument. I’m trying to capture the address returned by ...
2 votes
1 answer
15 views

Can you please explain how this truncateStr function works?

I understand that it makes the address on the frontend appear shorter as you specify the string to let it know how much shorter. What I do not understand is the math behind it and what substring ...
  • 33
0 votes
2 answers
26 views

Trying to figure out the return value from frontend console

So, I called a function from my smart contract that is supposed to return the address of a new contract instance, but I'm not sure how to read the output from the console. This is the image of my ...
1 vote
1 answer
143 views

Error: could not detect network

I am currently trying to deploy my DApp 'nftmarketplace' to the net using Vercel on the Goerli test network. However the app is failing to connect to the blockchain and I am getting the following ...
1 vote
1 answer
14 views

get a contract from a chain knowing the chain id with ethers.js

I need some help with calling the retrieve function of a contract without making the user change the chain. scenario: the user is on chain with id= 111 , I want to call the retrieve function of a ...
0 votes
1 answer
12 views

What should be the decimals for ERC20 token when you want to deploy in Solana network using NeonEVM?

I'm trying to get my head around the concept of this decimal in Eth. Should I change the decimals when I want to deploy outside of the Ethereum network? What would be the correct decimals value when I ...
0 votes
1 answer
15 views

what happens to subscribe event of web3 if something goes wrong?

If network gone, RPC is down, or something like that happen. then what would happen with the subscribe events of web3 js or python. do we need some additional codes to handle crash or subscribe event ...
0 votes
0 answers
22 views

Metamask app detect my dapp as phishing

I create a dapp and made a website. The first few days the metamask app (Android) worked fine with it, but then it identified my site as phishing and shows a red warning page. How can I fix this ...
0 votes
0 answers
13 views

RPC Error: excution reverted" when calling a function from next.js

I've looked at similar answers regarding this error, and it seems like the majority of them have to do with using the wrong contract address or the abi. In my case, I do not think this is likely ...
1 vote
1 answer
17 views

After running the following code I received from Metamsk Error

import { useWeb3React } from "@web3-react/core"; import { InjectedConnector } from "@web3-react/injected-connector"; const injected = new InjectedConnector({ supportedChainIds : [...
0 votes
1 answer
24 views

Staking and ERC20 Approve (RPC Error: execution reverted: ERC20: transfer amount exceeds allowance)

I apologize if this question might seem a bit simple beforehand. I'm trying call the deposit function from my frontend, but it gives me the error mentioned above. I am confused as to if this is a ...
1 vote
1 answer
18 views

calling write and read function in smart contract using python web3?

I have a claim smart contract and I want to call the function to python. This is the function struct ClaimList{ uint256 claimCounts; uint256 amount; address agentAddress; ...
1 vote
0 answers
20 views

Is it possible to change what cryptocurrency a defi protocol uses without hard forking?

For example, let's say a defi staking protocol uses exclusively USDC token, but it decides to use another stablecoin instead, like Tether. Is there any way to smoothly translate all the assets staked ...
0 votes
2 answers
28 views

Integrate smart contract on backend (without metamask and wallet signing transaction)

i have a working dapp on frontend sending transactions and signing them through connected wallet (metamask). I want to transfert this logic of sending transactions to my backend (nodejs). so there ...
  • 101
0 votes
0 answers
11 views

Problem using drizzle/store

I'm new to drizzle and truffle. I'm trying to run a project and facing a strange problem. When trying to start the site, the html is empty, even if I try to show simple react components. I discovered ...
0 votes
0 answers
15 views

Is it possible to build a real-world private ethereum blockchain without any transaction fee and what other costs should I be aware of?

Recently I have been working on a class project. I have built a Supply chain Dapp, that was based on truffle framework and ganache as a local blockchain. I have some issues regarding the concepts of ...
  • 1
1 vote
1 answer
38 views

TypeError: Cannot destructure property 'getNamedAccounts' of 'hre' as it is undefined

Currently attempting to deploy my smart contracts for a DAO DApp. When running: npx hardhat run scripts/deploy.js --network localhost I receive the following error: TypeError: Cannot destructure ...
1 vote
1 answer
33 views

SOLVED | Solidity: the bool values returned correctly on Remix IDE but always return "false" on JS

This question looks silly but it drives me crazy because I cant find a solution. I will make it clear below. I use useDApp framework and with useCall hook. I can get correctly values returned from ...
1 vote
0 answers
8 views

How to properly subscribe for events

I am writing an application where I need to subscribe for certain SC events. Problem is that the wss connection is getting interrupted sometimes and re-connection needs to happen. I am loosing events ...
  • 11
0 votes
0 answers
41 views

HardhatError: HH700: Artifact for contract 'GovernanceContract' not found

Currently attempting to deploy my smart contracts. However, when running: npx hardhat run scripts/deploy.js --network localhost I am getting the following error: HardhatError: HH700: Artifact for ...
0 votes
1 answer
22 views

I want to mint erc20 as much as the value stored in the my database. like stepn

performs a specific action in my app, I add the number of tokens stored in the database to that account. After that, I want to mint my erc20 to that account as much as the number accumulated in the ...
1 vote
0 answers
11 views

Mint vs Secondary market NFT prices

I am releasing an NFT project art collection with an influencer with 10 000 nfts. Please tell me how should I improve my strategy: I plan to mint 5000 and list them on opensea from a "deployer ...
  • 73
0 votes
1 answer
38 views

How can I fix an connection timeout error when attempting to use the ipfs-http-client javascript module to upload to ipfs using a public gateway

I am currently trying to learn to use ipfs in conjunction with ethereum to create web applications. To help gain an understanding of how ipfs works, I am creating a simple React application that ...
  • 1
0 votes
0 answers
8 views

Using web3.py to build transactions for metamask

I building minting Dapp and I am using web3.py for ethereum interaction. When a user wants to mint, they make an API request to my flask backend, which builds a transaction and returns it. The client ...
0 votes
1 answer
18 views

Error with App.jsx in Ethereum Boilerplate

I have been following the Moralis tutorial for Opensea-clone and removed some lines of code (as directed) from the App.jsx file. This App.jsx file is obtained by cloning the ethereum-boilerplate in my ...
1 vote
0 answers
21 views

Architectural issues of using smart contracts [closed]

As part of my master's thesis MVP, I am developing a project on the implementation of an accounting system for electronic document management using smart contracts. Now there is a question of ...
0 votes
1 answer
20 views

contract.methods.payFund is not a function. Unable to call any of my contract function

I am unable to call any function of my contact.............. when I am printing my contract object it shows that all the functions are in the object but unable to call. It is the output when i print ...
1 vote
1 answer
355 views

Error uploading file to IPFS: HTTPError: project id required

Currently making a rudimentary DApp for posting chats, similar to twitter except built on a smart contract. I am using hardhat and running my app on localhost. When creating a profile I want users to ...
0 votes
0 answers
32 views

NFT whitelist merkletree

I hope you are all well. I am trying to make a frontend for an NFT minting DAPP. I use this code for the mint function: async function mint() { if(typeof window.ethereum !== 'undefined') { ...
  • 53
1 vote
0 answers
62 views

Make all transactions gas-less for an EOA

As a service provider, I would like to pay for any transaction a user makes from my app. I've read about meta transactions and contracts that implement EIP-3009, which allow the delegation of gas ...
  • 11
0 votes
0 answers
23 views

Setting an array useState([]) variable in React.js returns undefined

I have been trying to create a Web3 dApp using React.js. My first step was to connect the browser to a MetaMask wallet. So I first started by initializing a useState array variable named "wallets&...
0 votes
1 answer
41 views

Run aave test suite locally on ganache [Change network hardhat to ganache]

This is aave protocol v2: https://github.com/aave/protocol-v2 They have a built-in test suite. Running npm run test runs all the tests cases properly. But this runs on hardhat node. I need to change ...
0 votes
0 answers
43 views

TypeError: Cannot read properties of undefined (reading 'toNumber'), When trying to fetch totalSupply

I'm trying to fetch totalSupply from my smart contract using react-moralis useWeb3ExecuteFunction and got this problem the code import Head from 'next/head' import styles from '../styles/Home.module....
0 votes
0 answers
6 views

Mint dApp creation question

I've deployed and ERC-721 contract to Rinkeby, and now I am in the phase of trying to create a website with a mint button. I'm very new to the space and am not the best with react.js so I've been ...
  • 1
0 votes
0 answers
10 views

How to work with Aion to self-execute contracts

I am trying to self-execute a function within a smart contract using Aion to track defaults, but the transaction fails when I run it on the ropsten test network on remix. This is my code: pragma ...
0 votes
1 answer
15 views

How to create a metamask address(custodial) for a user who can login with Gmail

I am trying to implement a dApp in which instead of asking users to create metamask account. I am thinking to create a Metamask address(Custodial) for each user when they login with Gmail and Private ...
0 votes
0 answers
18 views

Metadata Not Loading

Hi so I was doing one of the tasks for Alchemy's RoadToWeb3 and my metadata is not loading, even though I checked my json and solidity, which is all working fine. I have been waiting for the past 6 ...
0 votes
1 answer
24 views

Transaction triggered successfully but users can edit transaction amount, How can I stop this?

I've recently added FTM payments to my website and discovered once the transaction is sent to MetaMask everything goes to plan but looking at the image below, Users can directly edit the amount sent ...
  • 33
1 vote
3 answers
160 views

Do we still need centrallize database at all for Dapp development?

This question keeps popping up in my mind, do we need centralize database at all for Dapp development like PostgreSQL, MongoDB and more, what if we want to store user's email and send them email ...
0 votes
0 answers
96 views

Getting values from events with Ether.js & Solidity

I'm new to Solidity and Ethers.js, so if there are any amateurish mistakes, that would be why. I'm trying to build a dApp that runs a function on my smart contract, retrieves the data that is emitted ...
0 votes
0 answers
34 views

Contract not passing to front end

I am building a chat DApp. I have a smart contract and a mostly complete nextjs front end. My contract is deploying properly however, whenever I call my contract from the front end it doesn't work. My ...
1 vote
1 answer
14 views

Is it possible to build an open-access DApp on a permissioned or private Blockchain?

I am wondering whether there are two independent layers. One that defines who can access and validate the blockchain and one who defines who can access the DApp. Is it e. g. possible to build an open ...
  • 11
0 votes
0 answers
37 views

RPC Error: Invalid parameters: must provide an Ethereum address

I'll realy appreciate if someone will help me with this problem. I'm currently trying to create an application where users are able to transfer a custom ERC20 token from one metamask wallet to enother ...
  • 1
0 votes
0 answers
665 views

Please Help ERROR:This JSX tag's 'children' prop expects a single child of type 'ReactNode', but multiple children were provided

Please Help ERROR:This JSX tag's 'children' prop expects a single child of type 'ReactNode', but multiple children were provided am trying to get my header use dapps activateBrowserWallet how do i ...
0 votes
0 answers
49 views

Is it a good pratice to reference a NFT by its IPNS link?

So I was wondering if it is actually a good practice for one to use an IPNS link from the IPNS protocol as a mean to point for a NFT? The need for the IPNS link instead of the normal IPFS link is ...
0 votes
1 answer
108 views

Type address is not implicitly convertible to expected type uint256

// SPDX-License-Identifier: MIT pragma solidity >=0.7.0 <0.9.0; library CryptoSuite { function splitSignature(bytes memory sig) internal pure returns ( ...

1
2 3 4 5
23