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
12 views

how do i provide liquidity to a stable coin?

the coin is fiat backed stablecoin I have the fiat amount to back the coin supply. but what i don't understand is how an off-chain asset will provide value to an on-chain asset as far as i've ...
0
votes
1answer
17 views

How do I get the Ethereum Object into my NextJS App?

this is my first post here. I have spent the requisite day+ on my own trying all I know with my limited abilities at present, but all to no avail. I come here seeking aid with the following issue then:...
0
votes
0answers
8 views

Expected primary expression: {from: proposer}

According to the docs of TimelockController.sol The proposers are in charge of scheduling (and canceling) operations. This is a critical role, that should be given to governing entities. So, the ...
0
votes
2answers
13 views

How do I charge each user of my decentralized application a fee?

I'm just learning how to build a decentralized application, and I have one question. Suppose I want to charge each user a fee of 1 ETH to use the application. If they don't pay, they don't get to use ...
0
votes
0answers
4 views

How to setup an account to interact with a local network using dapptools?

When spinning up a local network it gives us an account address but not it's private key, how can we set it up with ethsign in order to interact with the chain?
0
votes
1answer
22 views

Interaction of smart contract with mobile wallet/ wallet connect

I have a dapp that interacts with a smart contract using metamask through brownser and I would like to be able to interact with this smart contract through a mobile wallet using wallet connect. I can ...
0
votes
0answers
17 views

Does the NBA Top Shot NFT use a centralized backend?

There is a lot on "controversy" whether a Dapp has a centralized backend or not. I know that, by definition, a Dapp must have the backend DEcentralized running on ETH blockchain (or ...
0
votes
1answer
52 views

Interacting with Contract instance works on hardhat local rpc but throws error on mumbai testnet

So I'm currently working on an nft marketplace and I have this function that gets all the collections(which are proxy contracts) in the marketplace and gets basic info from the contract, like the name,...
1
vote
3answers
39 views

Is there any way to write a smart contract function that can be callable only through DAPP?

I want to create a solidity function that will be external/public will be callable only through dapp and not from etherscan.io. Is there any way, like modifier or third-party?
1
vote
0answers
30 views

i want to make a time based transaction using solidity in smart contract

i am creating smart contract for lottery system and i am stuck on a problem, i want to make a time based transaction like a certain amount of players are added into the array then a time stamp should ...
0
votes
0answers
18 views

Ethereum Gas Limit

sorry to bother the community, but i have a couple of questions regarding the gas limit and deploying a smart contract. should my gas limit increase if a user is minting more than 1 nft? in my smart ...
0
votes
1answer
19 views

Walletconnect integration not working on mobile

This is a weird one. I have successfully integrated walletconnect on my Dapp for the first time and it works just fine on my pc. When I try accessing it on my phone, it doesn't work. I am trying a ...
0
votes
1answer
28 views

Does SSR break the web3 philosophy of data transparency?

I have noticed a lot of Dapps these days are server side rendered using frameworks like Next.js where data is rendered server-side on hosting providers like Vercel, Cloudflare, or self hosted servers. ...
0
votes
2answers
101 views

Different IDs for bulk NFT mint in ERC-1155

I would like to mint bulk NFTs, say 1000. ERC-721 will be costly, therefore, I would like to use ERC-1155 instead. What I want to learn is, is it possible to have different IDs for each NFT? If so, ...
0
votes
0answers
6 views

Ethereum app looking at wrong Address from Migrations.json

I developed a webapp for ICO's (KOVAN TESTNET). It works just fine locally but when I push the files to my live site, it uses a different address for my sales contract. it is fine for my token ...
0
votes
1answer
33 views

Why doesn't MetaMask pop up when my web3.py script successfully establishes a connection with Infura?

from web3 import Web3 infura_url="https://ropsten.infura.io/v3/my_key" w3=Web3(Web3.HTTPProvider(infura_url)) print(w3.isConnected()) It is giving output as True. But still, it is not ...
0
votes
0answers
56 views

How to get the nfts in a user wallet address

I am currently working on an nft marketplace and each user has a dashboard and a profile page. And on both pages I would like to get the list of nfts a user has listed, sold and owns. Currently I have ...
0
votes
1answer
47 views

How to add NFT Royalties Feature to a marketplace

I'm currently working on an NFT marketplace, and I would like for creators to be able to add a certain percentage as royalties for future sales like rarible does. So what I wanna know is do I add this ...
0
votes
0answers
20 views

Restricting contract deployment on a private eth fork

I have a private fork of the ETH blockchain and I'd like to modify the source to allow deploying contracts from a single address only using this answer. The caveat, however, is that instead of a ...
0
votes
1answer
42 views

Possible to connect to Wallet from android (java/kotlin)?

I would like to program a mobile DApp which connects to a wallet, like a webapp. I thought it may be possible with WalletConnect. Has anyone ever done this? Thanks!
0
votes
0answers
27 views

Mint 1 NFT with copies on OpenSea

So, here's the tokenUri function in my smart contract. Right now it works by taking images from a folder on IPFS each time it is minted. I want it to instead mint the same file each time, but show up ...
0
votes
0answers
14 views

How do I return an array of only the keys of the mapping(uint => nft) that belongs to the current nft owner

Function to add the NFT-- function addNft(address _tokenAddress, uint256 _tokenId) public { //verify that the address is valid //and that the nft indeed exist //getting the ...
0
votes
0answers
25 views

How to set Web3.js eth account using metamask

With web3.js for a lot of functions you need to have a web3.eth.account set. As far as I am aware you need the private key to set this account and metamask does not for obvious reasons give you assess ...
0
votes
0answers
23 views

i am getting file not found error while compiling my file desipte importing files correctly

brownie compile INFO: Could not find files for the given pattern(s). Brownie v1.16.4 - Python development framework for Ethereum New compatible solc version available: 0.8.10 Compiling contracts... ...
0
votes
0answers
25 views

How does Sushi deal with limit orders? (Conceptually)

On Sushi.com it is possible to set limit orders. From their documentation: When the user creates a limit order for a purchase or a sale on SushiSwap, the order is sent to an AWS server[...] And in ...
0
votes
0answers
13 views

how to access contracts on a dapp-tools testnet with their address?

I have a json file like this : { "DEPLOYER": "0x3889c142090745AAa4803745739eE0a548204357", "CHANGELOG": "0xE3BAdfF0e84a551b8B53d5fac5aF9fB20f906898", ...
0
votes
2answers
38 views

how to create a dApp to interact with a user using stable coins

I use my holidays to learn solidity. Since I've programming background is solidity not my biggest challenge. Remix online IDE and JavaScript VM are great tools to start with. I've created a smart ...
0
votes
0answers
25 views

Problem with the truffle compile command

I have an issue with truffle compile command, when i run it the build folder is created but it is empty, there is no abi/bytecode inside. I tried to reinstall truffle but it doesnt help. In the ...
0
votes
0answers
5 views

Can anyone tell me the way to access the uncle blocks and newly created blocks with ether.js

I'm trying to figure out the method that would help me to list uncle and newly created blocks on the blockchain network. I created a script for uncle block by going through the ethers.js docs, where I'...
1
vote
0answers
109 views

how do you parse json rpc errors on frontend?

How do you parse returned json rpc errors from a failed transaction to get the underying revert message if any? I'm on frontend. example: try { await contract.methods.someMethod().send({from: ...
0
votes
1answer
342 views

Connect to metamask and WalletConnect using web3-react

I have been using web3-react to connect different wallets: I want to connect to metamask extension with the help of import { WalletConnectConnector } from "@web3-react/walletconnect-connector&...
1
vote
0answers
18 views

Binance network: secure transaction verification

I have a BEP-20 token deployed under Binance Smart Chain. I'm also trying to implement a web3 dapp that will send tokens from one address to another one and I need to verify this transaction on the ...
1
vote
1answer
39 views

TypeError: Member "push" not found or not visible after argument-dependent lookup in address payable[] storage ref

I am having the above error at the point where I am pushing the newly created contract address into the contracts[] array. Where am I going wrong? Any help will be appreciated. pragma solidity ^0.8.0;...
0
votes
1answer
23 views

dapp testnet - Fatal: Failed to write genesis block: database contains incompatible genesis

I got an error using dapp testnet command : Fatal: Failed to write genesis block: database contains incompatible genesis (have 36e0fd38f5fc4e17c59365b6a25c3402ed2cd4d47b634718fad38e3a7c84e65a, new ...
0
votes
0answers
20 views

how can I create an $sos style erc20 token

How do I take a snapshot of all opensea transactions and airdrop my erc20 token to eligible users like opendao/$sos did? Do I use something like geth or parity? basically how do i create my own meme ...
1
vote
0answers
37 views

admin.addpeers is not working on geth

This is the info i get when i run admin.addpeer on geth . i have used same genesis file on both aws instances, also rpcport and ports are different on both instances. the info is as follows: WARN [12-...
1
vote
0answers
57 views

How to create a custom nft collection from a web3 frontend

I am currently working on an NFT marketplace and although currently users can mint nfts and list them on the marketplace, All NFTs are minted under the defult NFT contract i.e // SPDX-License-...
0
votes
0answers
16 views

How do I put a dapp on my website?

I have already built out my NFT website. I want to use the hashlips minting dapp and put it on the homescreen of my website instead of it being on its one seperate website. How would I go about this?
0
votes
2answers
54 views

Since blockchain does not really hold/store data, how exactly do Blockchain projects/apps work?

To clarify, it is expensive and poor practice to store large amounts or sizes of data on a blockchain (ethereum or any other) Therefore, we don't link an application's backend logic directly to a ...
0
votes
1answer
22 views

Automatically and programmatically storing of a small piece of data on Ethereum

Is it possible to have a dApp automatically and programmatically store a small piece of data on Ethereum, when needed (so upon request), without the need for manually connecting a wallet like MetaMask?...
1
vote
2answers
194 views

Solidity: function consuming too much gas

I am developing a todo list dapp. Currently I have the createTask toggleCompleted and now I need the deleteTask to be done. The smart contract. // SPDX-License-Identifier: MIT pragma solidity >=0.4....
0
votes
0answers
15 views

Possible to confirm if a supplied address is actually 'real' and payable?

I have a contract where the user can provide an address where they can be paid, and I'm wondering if there is any mechanism, short of actually sending some ether to see if it will revert, for ...
0
votes
0answers
13 views

As you see I have specified that I want to send 100 tokens to the address but this is not sending 100 tokens it's send 0.0000001 I dont know why?

Document Collage Assigment ERC 20 <button>Name</button><br /><br /> <button>Decimal</button><br /><br /> <button>Symbol</button>&...
1
vote
1answer
49 views

How I can make a API-REST call and make the user pay the fee of the tx?

I know the question it may be dumb but I'm having troubles finding an answer for it, I need to generate a NFT and I thought of doing it on my backend NodeJs API via an API-REST call, the user makes ...
0
votes
0answers
14 views

Integrate images with a NFT contract

I have 100 images already done and i want to integrate them with a NFT Smart Contract,so it can be sold as tokens, but what's the best way to represent these already done images as a token in a smart ...
0
votes
0answers
8 views

How do Dapps (Brave Browser, Odysee, Defi) keep track of and distribute staking rewards?

does anyone know how do Dapps (Brave Browser, Odysee, Defi) keep track of and distribute staking rewards? In my experience, the rewards are updated in real-time fashion, which might imply (1) lots of ...
0
votes
0answers
10 views

Start mobile wallet application from mobile web browser

I have a dapp that displays warning when you navigate with mobile browser (ex. Mobile chrome) that you have to open your wallet dapp browser and navigate to my site, since I know you can open ...
0
votes
0answers
171 views

wallet_addEthereumChain is not working in metamask android app

I am using wallet_addEthereumChain RPC function to add the custom network in metamask android app through our Dapp but it is showing an error wrong chainid. The chainid(80001) is correct and the code ...
3
votes
1answer
57 views

Is there a way to abort or cancel web3 requests? (not transactions)

I am using myContract.getPastEvents (https://web3js.readthedocs.io/en/v1.2.11/web3-eth-contract.html#getpastevents) and I need to be able to cancel this request if a user switches their account or ...
0
votes
0answers
26 views

Login and Signup system on mobile dapp

I'm generally new to web3 development, I have experience on building mobile apps with JavaScript and React Native. I am looking on building a mobile dapp, and I would like to start by building the ...

1
2 3 4 5
20