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

Decentralised investment contract for a centralised SAAS app

Context After having written a proof-of-concept of a closed-source java SAAS app, I would like to raise a "relatively" small investment to refactor the code-base to allow the scope of the ...
a.t.'s user avatar
  • 65
0 votes
0 answers
18 views

Best way to integrate blockchain to web app

I am developing this web app to track work with the hopes of integrating the blockchain to record it. The user would submit data through a form and each node hopes to track both users, amount of ...
Zhi's user avatar
  • 11
0 votes
0 answers
19 views

analysing a wallet on a specific contract (web3js/ethers)

is it possible to obtain the transactions of an eth address on a given contract (nft)? at the moment the os API does not allow this, or rather, I would have to iterate over all wallet transactions ...
klok's user avatar
  • 1
0 votes
0 answers
70 views

WebSocket connection Failed when using Helia in react app

I have been trying to use helia in my react.js application but keep getting the following error in the console: WebSocket connection to ‘wss://ny5.bootstrap.libp2p.io/p2p/...
Harmanpreet Singh's user avatar
0 votes
1 answer
35 views

Alert after spending approval

This is a simple dAPP i am running via metamask. I have tried many things. window.alert(`Connected Successfully`); I have tried to add this window.alert to my code but it wont do much. async function ...
Jim Mike's user avatar
1 vote
1 answer
72 views

Metamask getBalance method doesnt work

When I wanted show my eth balance in my web site it gives me this "0x103cf17cc1518eb4" how can i turn into string?
seojunchian's user avatar
1 vote
0 answers
28 views

How to inspect MetaMask

I was wondering how can I listen to the requests & data that are being sent between the MetaMask extension & DApp, My purpose is to inspect how is MetaMask reacting to DApp requests so that I ...
Reza Aslejeddian's user avatar
1 vote
0 answers
14 views

truffle migration error

this is the truffle-config.js file: const path = require("path"); module.exports = { // See <http://truffleframework.com/docs/advanced/configuration> // to customize your Truffle ...
ps0's user avatar
  • 11
0 votes
0 answers
48 views

Smart contrat working in remix ide but actions not working with web3.js html interface, only displays work and i can't figure out where and why it is

first of all thank you for your time reading this. I'm trying to learn and play with solidity on polygon mumbai blockchain. I worked with internet forums, videos and chatgpt4. Here is some details ...
Jawhar Aredsgfs's user avatar
1 vote
1 answer
54 views

NFT smart contract review

I wrote an NFT smart contract based on OpenZeppelin documentation, I request you to review this smart contract and tell me if it is safe, complete and in terms of writing is clean and professional. ...
Ali's user avatar
  • 63
0 votes
0 answers
32 views

Not able to relay meta transactions to Biconomy's relayer

When I try to send signed transactions, the transactions are successful but from my personal Account and not Biconomy!! I'm using Web3 + Personal Sign custom implementation on a basic ERC20 token ...
Pankaj Jagtap's user avatar
2 votes
2 answers
35 views

How to Reduce Wallet Prompts for Enhanced User Experience in a Blockchain Gaming dApp?

I am developing a gaming dApp on the Ethereum network and aim to optimize the user experience, particularly in interactions with the blockchain. A major challenge is the frequent Metamask prompts ...
blockchaineng's user avatar
0 votes
0 answers
36 views

Newbie to hardhat, I am able to make transactions to smart contract but when I return a data it complains: Calling an account which is not a contract

I am a complete newbie in hardhat, web3 and smart contracts. I wrote a simple sol file: // SPDX-License-Identifier: MIT pragma solidity ^0.8.18; contract CreatorRegistry { struct Creator { ...
Shivam Sahil's user avatar
1 vote
0 answers
352 views

wallet connect button integration using web3Modal

I'm trying to integrate wallet connect to my dApp using web3modal. Link to the docs -> https://docs.walletconnect.com/2.0/web3modal/react/installation The dApp is about token swapping. When I try ...
Bhavishyag2's user avatar
0 votes
0 answers
187 views

Alternatives to WalletConnect on React native - to connect MetaMask blockchain wallet to React native app

I’m building a blockchain app on react native, and working with the WalletConnect package to connect a MetaMask/CoinBase wallet to my app, this has proven very challenge due to inconsistent ...
Gav's user avatar
  • 1
1 vote
2 answers
217 views

Queries on Base Chain layer 2

I am a web3 developer and want to use Base Chain layer 2 solution for my contract, but i am little confused. Does just deploying on base testnet enables all benefit of layer2? How to use Base ...
Hacek 's user avatar
  • 657
1 vote
1 answer
15 views

Doubt related to interface

We know openzeppelin has an interface named IERC20.sol, my doubt is related to interface. As this interface has functions like: function transfer(address to, uint256 amount) external returns (bool); ...
Hacek 's user avatar
  • 657
1 vote
0 answers
29 views

How to update a simple DApp(Decentralized) with older dfx version to latest one?

I'm trying to deploy my DApp and while the process, I am prompted to update my dfx to above version 0.12.x. But after updating my dfx I'm not able to run my existing DApp locally. So, I reverted the ...
mukesh kumar's user avatar
2 votes
2 answers
73 views

Best, free web3 tutorials? Basically how to learn building dapps

What are other resources ppl really like? Would love to learn what else is out there, particularly the free ones. [Edit] Adding a few of the most popular below: Ethereum.org's NFT series -- you'll ...
Alchemy Devs's user avatar
0 votes
1 answer
81 views

I am facing issue while calling withdraw function from react

I have a withdraw function in solidity script: function withdraw() public onlyOwner { (bool sent, ) = owner.call{value: 0.00025 ether}(""); require(sent); } Technically ...
Hacek 's user avatar
  • 657
1 vote
1 answer
89 views

On-Chain-Off-Chain Synchronization

What are the best ways you have come across (or are doing) to take on-chain data and create off-chain data while avoiding synchronization bugs? I am interested to see multiple approaches to this as I ...
AAMCODE's user avatar
  • 133
1 vote
1 answer
209 views

Frame size of X bytes exceeds maximum accepted frame size

I'm attempting to calculate slippage of the past X number of blocks to determine if a potential trade is likely to slip beyond the threshold 1% level. If it does I will cancel the trade. To do this, ...
Trent Kennelly's user avatar
0 votes
2 answers
18 views

We are developing a todo dApp and when we deploy it to a JavaScriptEVM both in Remix and Hardhat it costs 1.5m gas... Is it ok? Or is it enormous?

This is the contract we are deploying: // SPDX-License-Identifier: MIT pragma solidity ^0.8.8; contract ToDoStorage { struct ToDoList { uint256 id; string name; string[2][]...
cankocman's user avatar
1 vote
1 answer
271 views

Can I make a payable function with zero ether value?

I have a payable function in solidity with the price to pay that can be dynamic, in particular, sometimes it can be 0. I can correctly call the payable function when the price is higher than zero, but ...
Agilulfo's user avatar
1 vote
0 answers
28 views

React multipage dApp not working on IPFS

I am creating a create app with multiple pages and it uses web3-react (npm package) but when I publish this on IPFS, it doesn't work as expected, and I have tried react-snap for creating static HTML ...
Usman Sharif's user avatar
1 vote
1 answer
3k views

Error when trying to import ethers into React project

I am getting the following error when trying to import ethers in my React project, using babel: Failed to compile. ./node_modules/ethers/lib.esm/abi/abi-coder.js 107:2 Module parse failed: Unexpected ...
Falcon Stakepool's user avatar
0 votes
2 answers
331 views

What is signer?

I am confused with the idea of signer. What is signer? What is use of it? Why signer is important? When we need to use signer?
Hacek 's user avatar
  • 657
0 votes
1 answer
154 views

Have some confusion on hardhat-ethers

In hardhat-ethers we have these helper functions: function deployContract(name: string, constructorArgs?: any[], signer?: ethers.Signer): Promise<ethers.Contract>; function getContractFactory(...
Hacek 's user avatar
  • 657
1 vote
1 answer
2k views

what ethers.getContractFactory() does

I want to know everything what ethers.getContractFactory() does. It's parameters, when should I use it, difference between ethers.getContractFactory() and ethers.getContractAt().
Hacek 's user avatar
  • 657
0 votes
2 answers
92 views

What is the best way to handle and manage user permissions and access in my contract?

As a smart contract developer, it's important to make sure that only authorized users are able to perform certain actions within the contract, while also maintaining the security of the contract and ...
Ledger Foundation's user avatar
0 votes
1 answer
386 views

Connecting To Multiple Wallets Simultaneously To Dapp On The Frontend

I'm exploring the possibility of building a Dapp that enables the user to connect multiple wallets simultaneously. The reason is that for my particular use case, the NFT category that I'm observing ...
Joseph Woolf's user avatar
1 vote
1 answer
535 views

Problems reading emitted events with string data with ethers.js

I have a smart contract that produces NFTs and emits an event when contract is created. The definition of the event is: event NewBKNFT(address indexed contractAddress, address indexed publisherAddress,...
GGizmos's user avatar
  • 741
0 votes
0 answers
40 views

Create dapps to display sensor output

i want to make a project that can integrate IoT and blockchain. So, can I use the blockchain to store the outputs from the sensors onto the Ethereum blockchain and create a dapps to display the sensor ...
lostboii999's user avatar
0 votes
3 answers
860 views

Where can I buy some ETH Testnet tokens?

we are building a project and are running out of testnet ETH testnet, we have a huge userbase and it needs more testnet Goerli ETH. If you have any suggestions, please, let me know here in the ...
Oleh Popeskul's user avatar
1 vote
2 answers
2k views

Wagmi can't read function: Error: invalid address or ENS name (argument="name", value=true, code=INVALID_ARGUMENT, version=contracts/5.7.0

Hello everyone, I use wagmi with rainbowkit and I wanna check wallet address status with function "isApprovedForAll" response will be true or false, but I got undefined and error everytime ...
dromey's user avatar
  • 61
0 votes
1 answer
33 views

How can I query the NFTs associated with an account on a local test environment?

I wrote a smart contract which enables accounts to purchase NFTs. I now want to display the NFTs bought and associated with the connected account on a website. The Alchemy API seems to be a good ...
rajohs's user avatar
  • 179
0 votes
1 answer
290 views

Error while creating a 'Near' application [closed]

I'm trying to create a 'Near' bootstrap application using this command npx create-near-app blockvote --contract js --frontend react --tests js. This isn't creating bootstrap files as it should. The ...
Anay's user avatar
  • 141
1 vote
1 answer
153 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 : [...
Ali Hoosseini's user avatar
0 votes
2 answers
694 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 ...
Sid Ali's user avatar
  • 101
0 votes
0 answers
376 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 ...
Beau Chaseling's user avatar
1 vote
2 answers
490 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 ...
ho88it's user avatar
  • 21
1 vote
1 answer
2k 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 ...
Beau Chaseling's user avatar
0 votes
1 answer
166 views

How can I verify the owner of a signature obtained using personal_sign?

I am validating users during login by requesting for a signature. How can I verify that the signature obtained belongs to the correct account owner? This is how I'm obtaining the signature : const ...
NV1996's user avatar
  • 1
0 votes
0 answers
134 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 ...
Beau Chaseling's user avatar
0 votes
1 answer
2k views

How to mint NFT using ethers.js?

I'm a beginner in blockchain dev... I'm using the famous Hashlips ERC721 smart contract (available here: https://github.com/HashLips/hashlips_nft_contract/blob/main/contract/SimpleNft_flat.sol ). The ...
Henri's user avatar
  • 113
0 votes
0 answers
57 views

Attempting to connect my smart contract with my front end

I am attempting to build a basic DAO program. My smart contracts are mostly finished and my front end is mostly finished except for of course the blockchain elements. Before I jump into my current ...
Beau Chaseling's user avatar
1 vote
1 answer
95 views

How to sort off-chain

I read this article about sorting an array on an off-chain backend, but there are some things I can't wrap my head around. For example, say I have an array of times in no particular order arr ...
HeeeeSark's user avatar
0 votes
1 answer
139 views

How to implement a custom token in a seperate contract

I am new to programming and attempting to design a very basic DAO which implements a native token for voting (as you'll see it is unfinished). Help would be greatly appreciated. I am currently running ...
Beau Chaseling's user avatar
0 votes
1 answer
884 views

ProviderError: Error: Transaction reverted: function call to a non-contract account at httpProvider.request

I've been trying to debug this for about 8 hours now and have made no progress at all. I am new to programming and attempting to design a very basic DAO. Each time I attempt to deploy my contracts ...
Beau Chaseling's user avatar
0 votes
1 answer
51 views

Whenever I am trying to enter an address in my input Field , it automatically changes to one particular address only [closed]

My input field code <input type="text" placeholder="Enter address" onChange={(e)=>oppaddrchange(e)}/> And my handler function const oppaddrchange = (e)=>{ console....
MrBot's user avatar
  • 1

1
2 3 4 5
16