Skip to main content
4 votes

Why is it called “quadratic” voting?

Classic collective decision making (aka a "majority voting system") is oftenTimes vulnerable to a phenomenon of the "tyranny of the majority", hence the 2nd name. Contrary to that, ...
Mila A's user avatar
  • 1,254
2 votes

How to Reduce Wallet Prompts for Enhanced User Experience in a Blockchain Gaming dApp?

To streamline the user experience in a blockchain-based gaming dApp, consider the following strategies: 1. Batch Transactions: Batching allows you to group multiple actions into a single transaction. ...
MShakeG's user avatar
  • 1,723
2 votes

Foundry or Hardhat: I'm really confused about which one should I use?

Similar to web 2 programming. If you are only interested in solidity (which can be similar to the back-end in web 2), then you can prioritize working with Foundry. But if you are a full-stack (...
anhvietcr's user avatar
2 votes

Foundry or Hardhat: I'm really confused about which one should I use?

Solidity is a language for smart contract development while javascript/typescript these days, is used for frontend, backend and basically everything. by sure, it always depends on what you want to do ...
armin's user avatar
  • 21
2 votes

Projects you made

I’ve made various projects by following the amazing tutorials of Patrick Collins. Patrick, being a Web3 OG, has even started Cyfrin Updraft with an initiative to enable Web3 developers with the skills ...
SYED ASAD KAZMI's user avatar
2 votes
Accepted

Why does a wallet user need to sign a message to login?

My question is why wouldn't this be enough ? Because anyone can all you API endpoint with any address they want.
Mikko Ohtamaa's user avatar
1 vote
Accepted

Want to redirect to react component based on metamask address

Instead of defining and calling your redirectBasedOnAccount function inside useEffect. You need to define it outside its scope, and call the same inside the return of your App.jsx. Also, you need to ...
SYED ASAD KAZMI's user avatar
1 vote

Web3 Could not find name 'Web3'. Did you mean 'web3'

dev Advocate at Chainstack here! It looks like that might be an issue with how you are importing the web3.js package. This is how you import the package and create a web3 instance: const { Web3 } = ...
Dave Dev Advocate Chainstack's user avatar
1 vote
Accepted

Can't get the stored data from blockchain

The ABI that you're using, is having an address input field in the corresponding getUser() function: { "inputs": [ { "internalType": "address", ...
SYED ASAD KAZMI's user avatar
1 vote

Decentralised investment contract for a centralised SAAS app

Smart Contract for Investment and Revenue Distribution: Your idea to automate investment returns and revenue distribution is feasible and aligns well with Ethereum's smart contract capabilities. You ...
Łukasz Johnnie Wolski's user avatar
1 vote

Can ERC-20 tokens be used in a smart contract?

Uniswap, Compound, Decentraland, all of them use ERC-20 tokens as a form of payment or for any other interaction.
Canard Coca's user avatar
1 vote

React (opts:) not working, am i missing dependency?

That version of Web3Modal doesn't work any more and has been deprecated. Try v3 check docs here: https://docs.walletconnect.com/web3modal/react/about?platform=ethers
Glitch's user avatar
  • 11
1 vote
Accepted

Metamask getBalance method doesnt work

BigInt worked. Thanks to Zartaj Afser.
seojunchian's user avatar
1 vote

How to make contract transactions with Web3.py

It's possible your blockchain doesn't support the Shanghai update. Since solidity v 0.8.20, the compiler implements the new opcode PUSH0, which your blockchain might think it's invalid. So, change the ...
0xSanson's user avatar
  • 3,294
1 vote

mint NFT for contract address. it is possible to mint nft by passing contract address?

Make sure your contract that is supposed to receive the ERC721 receiver interface. This might be an issue. Otherwise please share the error screenshot. ERC721Receiver interface - https://github.com/...
Zartaj Afser's user avatar
  • 4,434
1 vote

How to Reduce Wallet Prompts for Enhanced User Experience in a Blockchain Gaming dApp?

I want to explore the best approaches to minimize or even eliminate the need for users to open Metamask repeatedly. Create an in-game hosted wallet that can be e.g. a web browser localStrorage based ...
Mikko Ohtamaa's user avatar
1 vote
Accepted

How to sign a transaction using metamask or other wallets in nethereum

I want to know how to sign a transaction through an external wallet using the nethereum library. Only web pages can interact with MetaMask, because MetaMask is a web browser plugin. Web pages are ...
Mikko Ohtamaa's user avatar
1 vote
Accepted

What's the best authentication/authorization system for DApp using ReactJS and Metamask

You can use web3 Auth API from Moralis to verify the users wallet address at backend. This helps to secure the backend while using any wallets or wallet connectors to connect on frontend. Auth API ...
JohnVersus's user avatar
1 vote

err_cleartext_not_permitted error while running Dapp on Android Metamask

In laravel Project I used this at the end of the web.php or api.php file and it worked perfectly: URL::forceScheme('https'); In Another Technologies force Your users to go to https urls to solve this
anonymous's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible