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

Override web3 methods using web3-provider-engine

I have created an open-source key management system, like a digital vault that manages the ETH keyring, which has methods implemented to securely sign transactions and export keys without having the ...
0
votes
0answers
9 views

how to cache responses of rpc api calls in DApps

Issue: JSON RPC Queries When interacting with an ethereum rpc interface for building DApps with JS or TS, the huge amount of communication round trips becomes a huge burden. The UI just takes a couple ...
0
votes
0answers
6 views

I'm getting this error : VM Exception while processing transaction: revert, while trying to send value from my frontend to smart contract

I'm trying to develop a Dapp but I'm stuck right now, due to this error that I'm getting while sending value from my frontend to smart contract. So, basically I want to update the UI once this ...
0
votes
1answer
15 views

Call a Solidity function with arguments in ethers.js

I deployed a smart contract that have this function: function createNewMigration(string memory title, IERC20 oldTokenAddress, IERC20 newTokenAddress, uint256 decimalsOldToken, uint256 ...
0
votes
0answers
15 views

How to save users that already approved a token

I'm making a dApp, i see that a lot of dApp asks to approve a transaction only one time How they know if someone already approved it? they save the address in a db? if yes, how they know if the user ...
0
votes
0answers
14 views

How do I create a dApp with an interface and deploy it online [closed]

I did coding in Java for around an year now. I recently learnt about blockchain and its mechanisms. Now I would like to make an app, for example, an anonymous voting system, on a private blockchain ...
0
votes
1answer
31 views

How does contracts with staking mechanism work?

I'm building a dapp where users must stake x amount of my token to use the dapp, but I'm stuck. Do I have to create LP TOKEN and get LP pair address so all the staked token on my dapp will go to that ...
0
votes
1answer
16 views

Require array lenght no working

I have the following function function mint(uint256[] memory tokens) public payable { require(saleIsActive, "Sale is not active"); require(tokens.length == 0, "No tokens ...
0
votes
0answers
18 views

What are the best options to listen to smart contract events in real time using websockets with web3.py

I am currently building a dapp, it has a backend that should listen to the smart contract events to check if a transaction happened or not. To my knowledge web3.js provides a way to subscribe to ...
1
vote
1answer
11 views

trying to get the value of a bool variable "should have the initial setting set"

I have the following public variable: bool public saleIsActive = false; but when I try to access from a test like the following: let isActive = await myContractInstance.salesIsActive.call(); I get ...
0
votes
1answer
19 views

DAPP login with all wallets

how i can make this type of login modal that support all the wallets for my dapp ?
0
votes
0answers
6 views

Running InstaDApp on an ETH mainnet fork

I have been unable to get a straight answer about building and setting up an InstaDApp account on a mainnet fork using Hardhat (which is providing the account keys). I've used both Alchemy and Infura ...
0
votes
0answers
14 views

How to organize solidity source code?

I have created a smart contract which has lots of functions variables, and events, making the smart contract too big. Can I separate the parts following a recommendation? I have the following parts: ...
0
votes
0answers
25 views

Storage systems for massive quantities of data

I'm creating a decentralized social media protocol and have begun trying to figure out the right data storage scheme. It feels like storing directly on chain would prove costly, inefficient, and ...
0
votes
0answers
32 views

Architecture of Dapp

I was building a semi Dapp, don't have the balls to call it a Dapp. Basically it's a market place that connects service providers with service seekers. It will have a smart contract that handles ...
0
votes
0answers
36 views

React - web3.js - Unable to read revert reason

Working on a web3 project with React and a contract that's deployed on the Rinkeby Testnet. I am intentionally sending requests that won't succeed to try and determine how capture the revert messages ...
0
votes
0answers
25 views

How to sign with owner address and verify signature comes from owner?

I’m trying to sign an address with my address as the owner of a contract to send that signature in a method of my contract. Then have my contract to verify that the signature comes from my address. ...
0
votes
1answer
19 views

Is there a way to check if the transactions are happening on binance smart chain network or ethereum smart chain?

I'm new to block chain development and developing a DApp on binance smart chain. In my DApp, I changed the network provider from default ethereum web provider to binance test network provider. DApp is ...
1
vote
0answers
34 views

I couldn't make ERC2981 royalties work

I have implemented royalty function to my ERC721 NFT smart contract. When I deploy my contract, royalty contract is equal to my address so this way I have defined which address the royalties get ...
0
votes
0answers
17 views

Problem when writing decimal data as string on the blockchain

I'm trying to develop a dApp that uses smart contracts to write decimal data in a CSV file on the blockchain. What I'm working with currently is the following: Convert the CSV file into JSON string ...
0
votes
0answers
32 views

Why does Uniswap V3 tick to square root price formula not match actual values from Etherscan?

Trying to learn how Uniswap V3 works, and was reading through the whitepaper. Supposedly, the formula for getting the tick from the current square root price should be: The whitepaper says that the ...
1
vote
0answers
21 views

Ways to use/integrate an Ethereum - Polygon wallet in an Android app

Where I work, we have an ERC-20 token, running on Polygon Testnet at the moment, and the plan is to to run on the Polygon chain on the future. We have an Android app, where we want to explore ways on ...
0
votes
1answer
22 views

Contract address for a contract that was deployed by another contract in ethereum

I am trying to figure out if this pattern for an ethereum smart contract would be possible or are there limitations in solidity or the evm which would prevent this. Contract A is deployed on the ...
0
votes
0answers
15 views

Assign Username To Wallet Address

I have Created Dapp in Which People can Sign in With Their Metamask , How Can I Add Option To Assign a Nickname or Username to Their Wallet Address When They Sign in and Show the Username in the Dapp?
0
votes
0answers
32 views

Hook error using Truffle React box (transforming the App.js from Class component to Functional component)

not an expert Solidity/React user here. I got Truffle React box and I am making a website. My example is very easy. I have this Nav element: import React from 'react'; import Nav from './...
1
vote
0answers
27 views

Should I go with web3.py or web3.js as a beginner to start with dapp development? [closed]

I already have foundation in JavaScript and have done web app in HTML, CSS, Js and Django for a bit, and I am looking forward to learn about Dapp. Initially I want to go with web3.py but after looking ...
0
votes
0answers
7 views

TypeError: Cannot read property 'getAmountsIn' of undefined BSC Price Bot

new to dapps and newer to coding here - trying to create a pricebot for BSC. As of right now I am only trying to integrate PCS (if I can get thi s to work I'll obviously add more). I am getting this ...
0
votes
1answer
24 views

What are the differences between Binance Chain and Polygon?

I have some experience using Matic, which works just like Ethereum, I point metamask to Matic and boom, I can publish smart contracts, use the explorer, use the gas station, etc. Now I have a project ...
0
votes
0answers
10 views

what are the steps to execute this contract

I want to execute this program https://solidity-by-example.org/signature/, but I do not know where should I run web3 code any one can tell me the hole steps that describe how to run this ?
1
vote
0answers
14 views

Signed Transaction on Ropsten undepriced

I am trying to send raw transaction data for a contract from a React frontend to a Node backend, sign it, then send it to the Ropsten network. However I am always getting the error "Error: ...
1
vote
1answer
66 views

how I can sign message using web3js?

I know that I can sign a message using web3js, but I don't know how I can do that, then how to verify that signature using ecrecover()?
0
votes
0answers
9 views

Web3js Module Not Found

I'm using latest version of node, latest version of web3js. I'm pretty new to this and trying to test out some web3 stuff. I'm trying to use the getPendingTransactions as mentioned on the web3js ...
0
votes
0answers
13 views

Should I duplicate server logic in the client, if it decreases the amount of needed HTTP requests?

I'm building a dApp, which has 3 parts: Contract Server Client The Client can listen to the Contract's events directly, and perform all necessary state changes. However, if the Client goes offline (...
1
vote
1answer
19 views

How can I create a smart contract using another smart contract?

I want to create a smart contract which I can link to my website using web3.js and create input fields for creating a contract using the main contract and I can set the fees also which should go ...
1
vote
1answer
15 views

inheritance behavior of 2 contract when deployed

I would like to implement two contracts that extend another contract with an information store. Example: contract MonsterData { struct Monster { string name; int8 category; } ...
0
votes
0answers
33 views

How do I listen to Contract Events in my Express App?

I have a Smart Contract rps. I want my express app to be able to listen to its events. My express app: require("dotenv").config(); const express = require("express"); const app = ...
0
votes
0answers
49 views

NFT collection smart contract - attributes on opensea

I have a question regarding attributes in tokenUri.. I know to display attributes on item page, we can add attributes array to the tokenUri.. but if I look at the contract of THE LOOT or THE N PROJECT,...
2
votes
0answers
38 views

How should a dapp store & query user profile data?

We are currently working on a dApp that will store user profile data and let its users query them. We haven't been able to figure out how to do that efficiently so far, and therefore we need to ask ...
0
votes
0answers
49 views

Displaying ERC20 token being transferred during metamask confirmation while using approve/transferFrom

I am having difficulties with doing transactions from the client side of an application I am building. I cannot find any great examples of the recommended flow of handling transactions, and most seem ...
1
vote
2answers
153 views

Error while Install web3.py. "python setup.py egg_info": Microsoft Visual C++ 14.0 or greater is required

I am trying to install web3.py and get this error: ERROR: Command errored out with exit status 1: command: 'C:\Users\onlyd\AppData\Local\Continuum\anaconda3\python.exe' -c 'import sys, ...
0
votes
0answers
29 views

Ethereum TX not sender - Returned error: invalid sender

I want to create a DApp by staking pools of Stake BNB Earn MyToken tokens. I've been looking for some references but I'm still confused, that's why I decided to ask. I have the following lines of code ...
0
votes
0answers
244 views

WalletConnect on frontend not working

I want to add wallet connect on my website. I try to do it like Metamask (i.e : adding web3.js in my HTML file and write script to interact with user). But this tutorial is not working : https://...
1
vote
1answer
140 views

err_cleartext_not_permitted error while running Dapp on Android Metamask

I use Metamask browser on Android phone to connect to a Dapp. But it gives ERR_CLEARTEXT_NOT_PERMITTED. This Dapp is working well on browswer extension Metamask. All connections in web3.js source is ...
0
votes
0answers
28 views

How to use TrustWallet DApp browser with WalletConnect?

I need to integrate my Dapp with Trust Wallet's internal DApp browser. I followed this instruction on the trust wallet website. However, when I run my DApp inside the trust wallet DApp browser, it ...
0
votes
1answer
22 views

Is interacting with Web3 private?

If you're interacting with a dApp, e.g. connecting to a Web3-enabled site via MetaMask, would this interaction be private or is there a way for service providers to record your wallet address and any ...
0
votes
1answer
40 views

How to restrict a function to avoid being called externally out of the game?

I'm developing a game on top of Ethereum which combines NFT's and some cool RPG gameplay dynamics. My doubt is that, for as far as I know, every function in the contract can be called from outside ...
1
vote
1answer
30 views

What are the best tools or ways to interact with a smart contract from a word-press website?

I am currently working on a WordPress website and I want to interact with a deployed smart contract and need help selecting the right tools or ways to interact.
0
votes
0answers
55 views

web3 getPastEvents() returns empty array

I am listening to the events of a contract running on the ethereum network at https://etherscan.io/address/0x6b175474e89094c44da98b954eedeac495271d0f and I am connecting through infura.io mainnet ...
1
vote
2answers
44 views

Best resources for project based learning? [duplicate]

I've been told about Crypto Zombies and one Discord group (https://discord.gg/MffMqPF3) as one of the best places to learn Solidity by building projects. Are there any other websites that you can ...
0
votes
0answers
33 views

What is the best method to get all holders of a Token?

I'm looking for something similar to Etherscan's "Holders" tab, but I need the info delivered via web3 or web API to a script. Blockscout has a mainnet RPC but it is currently down and ...

1
2 3 4 5
19