I'm building a decentralized application where users can connect their cryptocurrency wallet (Metamask) to my website. They can initiate a connection request by
I have this code that allows me to send bnb using web3.js using MetaMask I want to display a message when user rejects payment or there is any other error and i
Here is my code: import Web3 from './web3'; if (window.ethereum) { window.web3 = new Web3(ethereum); try { // Request account access if needed
I simply am trying to import web3 to my project and for whatever reason I cannot seem to resolve the issue I am facing. The relevant code is posted below: Examp
I'm writig a dApp using web3Modal and web3js libraries. I have an issue regarding the WalletConnect provider. Upon choosing to connect using WalletConnect, the
Hi everyone! I tried to make a call to the state of a contract developed on truffle, using web3.js in React, the problem is this, when I try to see the price of
I was trying out wallet-connect for my nft market place app . i have mostly everything set up from my end . Just that my wallet-connect works perfectly in local
Im having a simple UI where i need a metamask connect button but when i use this code i keep getting the "Non-Ethereum browser detected. You should consider try
I am developing a react app and I have code from 2 different applications I wrote Application A uses metaplex to find all the NFT's owned by a user (wallet addr
I am doing a very simple powerapps code component project using react and web3. As soon as I build the project, I get a bunch of errors. Many of them I managed
I can get cw20 token balance using this code snippet const response = await terraConfig.wasm.contractQuery(tokenAddress, { balance: { address: walletAddress }
I deployed the following smart contract on Ropsten ethereum test network and afterwards I tried making a transaction using @alch/alchemy-web3 npm package (Yes,
I am trying to connect to a smart contract deployed using Truffle. I am using Web3 from a React app but when I make a call to any of the contract functions I al
I am getting invalid sender when trying to send a signed transaction. Here is the error: Uncaught (in promise) Error: Returned error: invalid sender and this i
My code below gets the data correctly; however, there is one problem where when I try to get the reserves of a token. It spams the data over and over again to t
When using ethers JavaScript library to retrieve ENS text records from the Ethereum Name Service. I got the NFT URI from the text record but not the image URL.
I encounter the following error while trying to run a dapp made using React, Truffle & Ganache. I'm also using web3 version 1.7.1. The problem is that the c
I am very new to web3 and relatively new to JavaScript. The following code returns undefined for the variable accounts. Here is my code: const Web3= require('we
So im making a function in react that enables me to connect my react page with my metamask and display my nfts that ive purchaed on opensea onto my webpage once
I'm writing an ERC721A smart contract and getting a warning in the Remix IDE. There is the code: function tokenOfOwnerByIndex(address owner, uint256 index) pub