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
2
votes
0answers
7 views

How to query data from Uniswap using the JS SDK?

I'm having problems retrieving some data metrics using the Uniswap JS SDK. When I try to query getInputAmount it returns this error: (node:88) UnhandledPromiseRejectionWarning: TypeError: Cannot read ...
0
votes
0answers
10 views

Non-existent import files in pancake-swap-periphery

I'm looking for someone to give me a basic understanding and direction regarding pancakeswap forking. I cloned pancake-swap's periphery repository from github and in its contracts it imports "@...
0
votes
0answers
15 views

JIT events on etherum

I would like to write a contract, that fetches a data from oracle in a specific point of time (or later) Is there any option to pop up an event in some point in the future in Ethereum contract? The ...
0
votes
1answer
22 views

If you are a miner can you accept your own transactions at no cost? [duplicate]

Let us say I am a miner. Can I accept my transactions into the blockchain at no fee to myself? And what do I lose? Let us assume someone is running a dapp. Can they mine transactions of that dapp to ...
0
votes
0answers
6 views

TheGraph with Compound v2 is returning my mainet wallet address as null

When querying the following with the thegraph playground (compound v2) { account(id: "address here") { id totalBorrowValueInEth } } returns { "data": { "...
0
votes
0answers
14 views

Programmatically fill up dapp with gas

I am new to crypto and I'm trying to add tokens to my dapp's address. Can I use the crypto.com v2 api private-create-order endpoint to fill up my dapp?
0
votes
1answer
13 views

Getting current user balance of an aToken for a specific asset in AAVE v2 protocol

As AAVE protocol V2 documentation says: aTokens are interest-bearing tokens that are minted and burned upon deposit and withdraw. The aTokens' value is pegged to the value of the corresponding ...
1
vote
1answer
24 views

Which are the steps that a developer follows to develop a DApp?

I would like to know if based on your experience, the following steps are correct in order a developer to develop a DApp from the start to the end. Steps: Create an Externally Owned Account (EOA) ...
0
votes
1answer
16 views

Why do web3 dApps need servers?

I see a lot of projects run into server capacity issues at launch (token sale, nft launch, etc). [1], [2] What reason(s) would require these projects to have a server, versus deploying a static ...
0
votes
0answers
7 views

Should my application be decentralized? (Basic Question)

I know this is a seemingly basic question, but one that I have not found many solid answers to. I have been programming for a few years now and with the recent NFT boom, DApps have caught my interest. ...
1
vote
0answers
20 views

What is best approach for generating random NFTs?

I am thinking of developing small DApp where user would collect cards (NFT). Each card would have some image and value associated with it. User collects cards by purchasing Pack of Five Cards which ...
0
votes
0answers
12 views

Solidity beginner exercise: Santa'slist

I am trying to implement the following exercise "Santa's list": Build a system for tracking who is on their nice list and who is on their naughty list. Furthermore, I do not want duplicates ...
1
vote
1answer
11 views

Solidity contract does not update variable when calling it from web3.js

my solidity code compiled using solcjs // SPDX-License-Identifier: MIT pragma solidity >=0.7.4; contract FirstContract { int count = 0; function incr() public{ count = 15; } function ...
1
vote
1answer
24 views

Reading out single elements from a struct of an other contract

here a shortcut from my both contracts. Is it possible to read out and change single elements(from contract B) of the struct (Contract A) ? e.g. from contract B like p.submission(_id).studentaddress ? ...
0
votes
1answer
33 views

Interact with a contract function using Web3.js

I finished testing my smart contract functionality with "unlocked accounts" (which don't require complex signing) on a local dev blockchain, but now I would like to deploy on MAINNET and use ...
0
votes
1answer
19 views

How to keep track of your smart contracts without a centralized server?

How to keep track of your smart contracts without a centralized server? Let’s say I have a dapp that creates smart contracts. Is there a way I can keep track of all the smart contracts my dapp has ...
1
vote
0answers
17 views

converting string and int to bytes32 and vice versa doesn't return same value

I am trying to send a set of values, which contain 3 strings and 1 integer, as a bytes32 array to a function. The original values that I want to convert to bytes32 were ["maham",67,"...
0
votes
1answer
19 views

Assigning addresses while publishing contract in Solidity

I was recently viewing a DApp on GitHub. The following is a part of .sol address contractOwner; address withdrawWallet; function contractName(address _contractOwner, address ...
0
votes
1answer
22 views

Funding contract with LINK tokens revert error

When I try creating a Chainlink contract from "master contract" and fund it with LINK, I keep getting the error: "VM error: revert. revert The transaction has been reverted to the ...
3
votes
1answer
38 views

Trying to run dapp in metamask mobile browser

I would like to run a dapp in metamask mobile browser, but got stuck in below things: 1. Unable to view the console errors(inspect element) in the application 2. How to visualise page load values or ...
0
votes
0answers
12 views

Called a smart contract function(web3py), signed the txn. it executed successfully, but the block wasnt mined and the txn hash was empty. How do fix?

def addPatientDetailOld(request, name, location, phone, nin, email, dob, lga, state): private_key = request.session["key"] address = request.session["address"] transaction = ...
0
votes
0answers
7 views

Segregating user authentication from network on Metamask

I am using blockchain inside a big company and we need to include a reverse proxy with authentication before a node. In order to submit a transaction, the user needs to send his/her password and sign ...
2
votes
1answer
33 views

Where can i find a documentation of all `wallet_` RPC calls?

Looked everywhere, and all I can find are a bunch of EIPs. Is there a document/repo somewhere listing all available RPC calls that interact with the wallet (wallet_...)? Specifically, I'd like to ...
1
vote
1answer
25 views

Is there any advantage or disadvantage of using javascript over solidity when building dapps on etherum?

I am aware that there are libraries that let you build dapps on ethereum. What are the pros and cons of using javascript over solidity for dapps. I know this might sound like a partly subjective ...
0
votes
2answers
45 views

Is it possible to restrict the solidity function call to a specific DApp only?

I would like to develop a contract in solidity and a DApp. However, I do not want anyone to be able to execute the certain public function if they are not using the DApp that is associated with the ...
0
votes
1answer
43 views

Meaning of accounts[0], accounts[1], accounts[2] etc. in DApp in Solidity?

I was recently viewing a DApp on GitHub. It had the following in .sol, and test.js respectively. address contractOwner; address withdrawWallet; function contractName(address ...
0
votes
0answers
21 views

Should an account be associated with a node

When i use await web3.eth.accounts.create(); to create a account and write something to smart contract in ganache, i get sender account not recognized. But I get executed properly when i create an ...
0
votes
1answer
16 views

Create new account in ganache

I'm creating a Dapp which provide the user with individual account. while developing, when i create a account by const accounts = await web3.eth.personal.newAccount('test'); the account is created ...
1
vote
0answers
43 views

Cryptocurrency is not viable for mass-market application? [closed]

The Idea I am new to cryptocurrency. I am writing an app/game that has its own marketplace for digital items. I have an established userbase of around 120,000 users of which 6,000 are paying customers ...
2
votes
1answer
17 views

JSON UTC to Web3 provider

We are using @truffle/hdwallet-provider [1] to sign transactions when deploying smart contracts on Besu. All the provided examples left the private key or the mnemonic in plain text in the truffle ...
0
votes
0answers
22 views

web3 loading issues

i am working on expense tracker dapp using redux/toolkit, when i call the addTransaction function, unfortunately transaction is not getting fulfilled but in console it throews error message 'TypeError:...
0
votes
1answer
29 views

Is ganache decentralised?

According to Dapp the blockchain should distributed, But while we use ganache it runs on a local machine and the clients will be having only their private key and public key (or wallet) with them ...
0
votes
0answers
45 views

Issue in Dapp using Angular 11.1.0 and web3 1.3.4 and Rinkeby metamask, getting error on new Web3(window.web3.currentProvider)

I am trying to create DAPP using Angular 11.1.0. I am able to deploy the contract on Rinkeby test network successfully. But on Client side getting below error on loading Web3@1.3.4 js. Getting error: ...
2
votes
1answer
49 views

Why doesn't web3.js/metamask have a decrypt with private key function yet?

For smart-contracts and dApps it is in many cases important to put encrypted data on the blockchain, encrypted with the public key. I have been searching, but there doesn't seem to be a way to decrypt ...
1
vote
1answer
27 views

How to recognize if a website is a DApp?

A Launch App button often appears on the top-right corner of Ethereum-platform websites. Is this an indication that a link is a link to a DApp (decentralized application)? Are the following two ...
0
votes
1answer
24 views

Wondering about an etherscan transaction, did not receive swapped coin

May be a bit of an noobie question, as I am not super confident navigating etherscan at the moment. I used the Bitswap dex from within the Trust Wallet app and swapped RSR for USDC. On etherscan the ...
1
vote
1answer
97 views

How to use Trust Wallet instead of Metamask on mobile browser?

Most DApps makes use of meta mask to sign transactions. I want my dApp to Make use of trust wallet when its opened on a mobile browser. How do I do this
2
votes
1answer
31 views

How do large Ethereum dapps get iteratively developed?

There are some extremely large projects on the Ethereum blockchain, like Augur. These dapps aren't short 100-line smart contracts, and are not uploaded once to the blockchain and done. Question: how ...
0
votes
1answer
31 views

Uncaught (in promise) TypeError: work.methods.workCount is not a function

Describe the bug I am trying to call the public variable "workCount" from a smart contract using web3 Steps to reproduce: const work = new web3.eth.Contract(ABI,Address) const workCount = ...
1
vote
0answers
77 views

Issue in Integrating metamask to chrome browser in mobile

I am trying to create an DeFi app by integrating the MetaMask wallet. Desktop The DeFi app works fine with the MetaMask integration Mobile I have my MetaMask setup in my Android mobile. When I tried ...
0
votes
1answer
44 views

Is Ethereum a DAO?

I am currently reading the book Token Economy from Shermin Voshmgir, which I am finding a very comprehensive overview of the current state of the Web3. I am still very new to the topic though, so bare ...
0
votes
0answers
24 views

Invalid implicit conversion from rational_const 5 / 2 to uint256 requested

I have the following code snippet inside my contract: plans[1100] = Plan(7, 3); plans[1101] = Plan(7, 2.5); plans[1102] = Plan(15, 4); plans[1103] = Plan(30, 6); plans[1104] = Plan(30, 5); When I try ...
2
votes
1answer
21 views

How to check whether the keystore file has been tampered?

The format of the keystore is shown below. In the project, there is a requirement to save the keystore file from the front end to the back end. How can the back end check whether the keystore file has ...
0
votes
0answers
48 views

Detect Lock/Unlock actions in MetaMask

I want my dApp to detect Lock/Unlock actions in MetaMask, just like in: Remix=>"Deploy & Run transactions"=>"Injected Web3" ethereum.on('accountsChanged'... - is not ...
0
votes
1answer
28 views

Should dapp backend sign all transaction. What problems may occur?

I have a dapp that communicates with one contract address. I want users to submit data in the frontend and then the data will be transferred to backend, where an ethereum account will make and sign ...
0
votes
1answer
29 views

Resubmitting the same transaction

A common concern for dapps using public blockchains is to check that a submitted transaction was included in a block after some time. And, if not, try to resubmit the same transaction (I mean, using ...
0
votes
0answers
31 views

Is it possible to schedule a transaction to execute after a certain amount of time in ethereum? [duplicate]

Is it possible to schedule a transaction to execute after a certain amount of time in ethereum? For example, I have a dapp where after two weeks I want to call a getRefund function on the smart ...
0
votes
1answer
29 views

Contract of contracts

I am new to solidity :) and try to encapsulate array of contracts in one contract. Something like this: contract Item{ uint public blabla1; uint public blabla2; } contract Collection{ ...
0
votes
1answer
31 views

Decentralized social media apps

Facebook, Instagram and Onlyfans are all centralized social media platforms. You don't have full control over your content once shared, it becomes metaphysically subject to the company's rules and ...
0
votes
0answers
19 views

my smart contract is not responding and error saying web3 is not defined

<script> var myContract; async function CheckMetamaskConnection() { // Modern dapp browsers... if (window.ethereum) { window.web3 = new Web3(window.ethereum); try { ...

1
2 3 4 5
17