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

What is the current state of zkEVM development?

What is the current state of zkEVM? That is - a general-purpose (not specialized like Loopring or Immutable), EVM-compatible, Solidity-compatible zk-rollup layer 2. To my knowledge they are still ...
user avatar
0 votes
1 answer
20 views

why i'm Showing this error when i fetch Market items?

function : function fetchMarketItems () public view returns(MarketItem[] memory) { uint itemCount = _tokenIds.current(); uint unsoldItemCount = _tokenIds....
user avatar
0 votes
0 answers
10 views

Deploying to Ethereum Mainnet

I was trying to deploy my DAPP to the Ethereum Mainnet platform, but when I try to deploy my contract it says insufficient funds even though my account has ether on it. What could be the problem?
user avatar
  • 1
1 vote
0 answers
16 views

Send transaction in the backend on behalf of another person

I am designing like platform service. The user (browser) will send a web request to a backend server. The backend server will send transaction with platform's wallet, for the user. The user does not ...
user avatar
  • 11
0 votes
0 answers
3 views

Best HOST and DOMAIN provider for Dapp s [closed]

I have created a Dapp with Solidity, Ethers, and React. Now it's the time to publicize it and I am actively looking for a proper Host and Domain provider. Can anyone direct me to the best available ...
user avatar
0 votes
1 answer
16 views

How to call two function together in etherjs

Hello i am trying to mint nft with erc20 but need approval of token first so i wrote code but calling only approval not mint after that can someomne help out i wrote in etherjs import { useState } ...
user avatar
  • 1
0 votes
0 answers
30 views

How to get solidity custom errors on dApp?

I would like to get the custom error code from my dApp, however, I can't get it when the smart contract is using revert. However, I can get the error reason when the solidity contract use required. Ex....
user avatar
0 votes
0 answers
10 views

Get the connected accounts to a specific network from Metamask using web3.js

I am creating a dApp on Kovan Testnet. Can anyone tell me how can I get the connected accounts to Kovan from metamask using web3.js? I can get the accounts added to the Metamask using this, const ...
user avatar
0 votes
0 answers
17 views

how to call approve function in token contract using etherjs to allow other contract for spending of tokens

This is approve function abi: [ { "inputs": [ { "internalType": "address", "name": "token", "type": "...
user avatar
  • 1
0 votes
0 answers
11 views

Process 2 Ethereum Transactions with single Transaction [duplicate]

I'm using third party SDK method and completing the transaction successfully. I'm trying to do the same function twice within a single ETH transaction. It's impossible with SDK method. I tried to ...
user avatar
0 votes
0 answers
18 views

metamask confirmation window does not show up

I was testing a frontend dApp. I tried to call a contract’s function in a way that will fail the require statement inside the contract’s function. However, to my surprise, there should be a ...
user avatar
1 vote
1 answer
36 views

Next JS versus React. Which to use when for your Dapp? [closed]

This is a broader theoretical question. What advantages does a Next JS Dapp give over a React Dapp? Apart from file-based routing and an option to protect some code on the server side? In case I am ...
user avatar
0 votes
1 answer
31 views

Error import web3

I can't import the web3 file there is an error ,SyntaxError: Cannot use import statement outside a module I used npm, to install the web3 library this error is in the phaser
user avatar
0 votes
0 answers
17 views

Web3js send method promise response when user refresh the page

I have a website that connect with a smart contract throught metamask provider. I'm using the send method and I'm managing every posible response of the promise, as on "confimration", on &...
user avatar
0 votes
2 answers
26 views

Ethereum applications with off-chain business logic

I am looking for real-world applications using Ethereum Smart Contracts that include complex off-chain business logic. I could find several useful examples of DApps, however, the off-chain layer often ...
user avatar
0 votes
0 answers
64 views

How to create dapps webview with inject web3 in flutter

I'm trying to inject and then connect web3.js to flutter WebView, but I can't get the wallet connected to the network, it's not showing me to the wallet connected browser site. This is how trying to ...
user avatar
  • 101
0 votes
1 answer
58 views

Check condition on all elements of an array

I need to check if all elements in an array (uint[]) are in a specific range. I was wondering if there is a better way to do this. This is what I came up with at the moment: contract MyContract { ...
user avatar
0 votes
0 answers
21 views

How to integrated javascript /web 3 into wordpress?

hello everyone i use wordpress for website developement and right now i developping a web3 app and i would to know how can i integrated the script to wordpress element (button etc ). Should i develop ...
user avatar
  • 5
0 votes
1 answer
34 views

"Struct containing a (nested) mapping cannot be constructed" Error

I am reviewing a piece of code intended for the creation of an oracle and I get the following error: "Struct containing a (nested) mapping cannot be constructed" I know it is related to the ...
user avatar
  • 1
0 votes
1 answer
9 views

Want to import data from firebase realtime database to smart contract writen on solana blockchain

I am making a token on Solana blockchain and want to give the token to certain uses for that I need data from my firebase Realtime database. I am little bit confuse How to get my data on smart ...
user avatar
0 votes
0 answers
17 views

Where to start performance evaluation of Ethereum Dapp

I've been researching on the performance evaluation of DApps in general and found that Hyperledger Caliper is used as a benchmarking tool. I also saw that it can be used not only in Hyperledger ...
user avatar
1 vote
0 answers
24 views

Can revert context be provided to frontend application for solidity's reverts?

There is solidity code that fails here: error InvalidCheck(uint32 _check); modifier someCheck(uint32 _check) { if (check != _check) revert InvalidCheck(check); _; } My frontend application fails ...
user avatar
  • 13
0 votes
0 answers
43 views

Integrating Coinbase Wallet using Web3Model for the Avalanche Network

I am looking at integrating Coinbase Wallet to my dApp which will run on the Avalanche Chain as I have seen it's compatible with it: You can check at Coinbase Wallet for Developers. I have been ...
user avatar
  • 103
0 votes
0 answers
12 views

How can I return struct/ structs based on date in timestamp?

I'm trying to make a get function based on date(in timestamp) Do I need another mapping? Take into consideration that it might be more than one registries on the same date. Any help is great. :) ...
user avatar
0 votes
0 answers
64 views

Wallet Connect not working on Android phone having a Android version greater than 10

I have integrated the wallet connect on a react native application, The app work perfect on the android phone that has a android version lower or equal to 10, If i run the application on a phone that ...
user avatar
0 votes
0 answers
135 views

Developing a Staking and Un-staking Smart Contract

I am relatively new to blockchain, and trying to write a staking smart contract, which could stake any ERC20 token and gives APY in the same token with the following requirements: Staking of ERC20 ...
user avatar
0 votes
1 answer
29 views

How can I integrate with gnosis safe multisig in dapp?

I plan to use gnosis safe multisig for our smart contract. Any sdk or something I can work with? thanks...
user avatar
0 votes
1 answer
12 views

How to solve ''address.setMessage is not a function''?

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1....
user avatar
  • 1
0 votes
1 answer
41 views

I am getting an error of UNSUPPORTED ENGINE while installing hardhat

Why am I not getting welcome to hardhat message? I got it for my earlier projects but not this one
user avatar
1 vote
1 answer
86 views

How to deploy smart contract using truffle and ropsten with Metamask account

I have this error when i use :"truffle migrate --network ropsten" This is my truffle-config.js: What I want to do is deploy my smart contracts using the same account (address) that I ...
user avatar
  • 11
0 votes
0 answers
56 views

Problem connecting to trust and metamask wallet on mobile phone from my heroku website

I am trying to connect to my wallet on my mobile phone from my react website hosted on heroku , after clicking on "connect" and choosing a wallet of m y choice e.g. trust wallet, it doesnt ...
user avatar
0 votes
1 answer
24 views

How sushiswap exchange price between token, native token?

I am new to blockchain dev. so the first learning I fork sushiswap from github, so the code very not clear for me The difficulty understanding is how to get price tokens to exchange? example 1BNB will ...
user avatar
0 votes
1 answer
28 views

Should all state-changing functions to a smart contract go through MetaMask?

For a Dapp that is using its own node provider such as Infura or Alchemy, all read operations can go through this node, but any state-changing operations will require a signer. These node providers do ...
user avatar
  • 13
0 votes
1 answer
14 views

What Database (or maybe the whole stack) should I use for a webapp?

I am thinking of making a webapp where I have to save some private data and other data that could be public. For simplicity let's say it's a quizzes page but it logs in with Metamask. We are going to ...
user avatar
0 votes
1 answer
152 views

How to buy NFTs from my smart contract with custom ERC20 token? [duplicate]

i want to launch a NFT genesis collection for all the holders of the previous collection. The previous collection gave the holders a ERC20 Token airdropped. So the holders have the custom ERC20 Token. ...
user avatar
0 votes
1 answer
53 views

Who pays funds for Marketing, Giveaways for Decentralized Company like Binance?

I wonder who gives funds for Marketing, Community Giveaways, etc in a decentralized companies like Binance. For Example, right now "Press a Button, Win a Bitcoin!" Event is going and the ...
user avatar
0 votes
0 answers
42 views

Coinbase wallet extention not connecting on the production

I have been trying to connect to two wallets coinbase and metamask in my application. They separately get connected on the localhost but when I am uploads my web app to the server then only the ...
user avatar
0 votes
1 answer
76 views

Nothing happens when I call web3.eth.sendTransaction

I am very new to web3, I am trying to use metamask with alchemy web3 wrapper. Metamask is connected and I can get account address and account balance but when I try "transaction" function, ...
user avatar
0 votes
1 answer
14 views

How to check if a function call is made from my front-end?

Long story short: I want anyone to be able mint an ERC721 token using the mint function within my contract BUT I also want to do some stuff if the mint function gets called from my dApp's front-end. ...
user avatar
  • 118
0 votes
0 answers
25 views

Where does payment get stored in a dApp?

If I was creating a dApp that creates a pool of say eth so users firstly deposit eth, where do I securely store the eth, people will get rewarded x% per day from the pool. So locked deposit then ...
user avatar
1 vote
1 answer
103 views

Sending eth with write function causing problems?

I have a payable write function which accepts arguments and some ETH to perform the work. However, when calling the write function, the call is just transferring eth to the contract address without ...
user avatar
0 votes
0 answers
14 views

wallet integration with desktop dapp

which wallet integration can I do with my react or electron desktop app? How can I do that? I had tried that swapy network and muon an electron fork maintained by brave but no use.
user avatar
0 votes
0 answers
15 views

Is it possible to sign typed data as operator

I am letting people create NFT vouchers with them by signing a typed data (_signTypedData). This is allowing me to lazily mint NFTs until someone actually mints the NFT by using this voucher. I wonder ...
user avatar
  • 118
0 votes
0 answers
12 views

How to End block 10 years from current block.number?

Hi i am making a staking contract and want to store a endblock from a contructor for a 10 years from now. Can anybody point me to good example? block.number + 10 *365 days;
user avatar
0 votes
1 answer
153 views

Uncaught TypeError: Cannot read properties of undefined (reading 'getInfo') at index2.js:20:20

i am going to call a smart contract method in web.js ( i am using legacy web.js) my solidity code as follow : pragma solidity 0.5.4; contract Register { string private info; function setInfo(...
user avatar
0 votes
0 answers
50 views

using a custom ERC20 in my minting application

I'm wondering if anyone can help me add a custom ERC20 token as a form of payment in my NFT minting application? My application is interacting with a standard ERC721 contract. pragma solidity >=0.7....
user avatar
0 votes
0 answers
9 views

How can I build a DApp that uses several blockchains (or several tokens)

Can I build a DApp that receives several tokens as payment like ETH, BNB, WAX and so on? If so, how can I do it?
user avatar
  • 1
1 vote
1 answer
17 views

How do dapp devs avoid a 'race to the bottom'?

Imagine Alice makes dapp-A, which has a .01% transaction fee. Now imagine the next day Bob forks dapp-A to create dapp-B and changes the transaction fee parameter to .005%. People will use dapp-B over ...
user avatar
0 votes
0 answers
26 views

Cannot execute write transactions to dApp using coinbase wallet

I'm trying to integrate the coinbase wallet into my dApp. I'm using the official SDK to establish a connection with the injected provider. I'm able to send read requests to my smart contract, however ...
user avatar
0 votes
1 answer
54 views

Staking contract

I started learning solidty and the contract is ready. Now I want to use web3 js, but unfortunately an error occurs. contract Staking is Ownable { struct User { uint256 depositAmount; uint256 ...
user avatar

1
2 3 4 5
22