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
0 answers
7 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
27 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
37 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
14 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
7 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
45 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
32 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
21 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
31 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
32 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
314 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
169 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
111 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
  • 665
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
  • 665
1 vote
0 answers
23 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
63 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
52 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
  • 665
1 vote
1 answer
58 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
0 votes
0 answers
11 views

Does anyone know how to work with DeSo

I was curious to develop a decentralized social network platform. and there are ways but i found this DeSo and i am not quite understanding it properly is there anyone that can help me with it
AmariS1's user avatar
  • 77
0 votes
0 answers
15 views

Is a multisig a kind of state channel application?

I would like to know if a multisig is a kind of state channel application?
Hacek 's user avatar
  • 665
0 votes
0 answers
18 views

Need help with a hacked MM defi wallet

How do I find software to run on my hacked defi wallet so I’m can beat the hacker to my tokens which he is harvesting from my staking which produces tokens 24/7.
Dan S's user avatar
  • 1
1 vote
1 answer
187 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
191 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
0 votes
0 answers
23 views

How to transfer money inside truffle console?

When I log in to the truffle console I see there are a bunch of addresses filled with money. I need to transfer an amount to the account that I am using with Metamask. (I don't want to import the ...
Mirat Can Bayrak's user avatar
1 vote
0 answers
21 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
2k 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
221 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
  • 665
0 votes
1 answer
132 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
  • 665
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
  • 665
0 votes
0 answers
35 views

What is ethereum.request and how can define or replace ethereum to make the HTML file running?

This is the html that creates a website where you write messages on the goerli testnetwork via smart contract. Metamask does not pop up and I get a response back shown in the pictures. <!DOCTYPE ...
NicolasKeil's user avatar
0 votes
2 answers
78 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
0 answers
16 views

What projects to land a job as a solidity dev? [duplicate]

Hey yo, I'm a C and Javascript self-taught dude, what's the best projects you could advise me to do for getting a job in solidity ?
thoughtfulGAbbas's user avatar
0 votes
1 answer
234 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
0 votes
1 answer
468 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
  • 701
0 votes
0 answers
38 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
703 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
240 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
139 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
583 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
336 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
442 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
119 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
124 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
46 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
83 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

1
2 3 4 5
16