web3js Questions

4

This past week Metamask introduced a new function called "wallet_addEthereumChain" which allows the user to automatically add a new Etheruem RPC to their wallet when prompted. This functi...
Pneumatics asked 11/3, 2021 at 18:35

3

Solved

How can you transfer SOL using the web3.js sdk for Solana?
Straightaway asked 28/6, 2021 at 16:30

2

I would like to query several ERC20 tokens on the RSK network to obtain the following fields: symbol, name, and decimals. How can I do this using web3.js?
Barrier asked 2/6, 2021 at 13:45

3

I am trying to add web3 wallet connect button onto my webpage but I am getting this error and I am not able to resolve it since a long time. It is a nextjs react application. const InvitesPage: Nex...
Rosco asked 15/3, 2023 at 10:32

6

Solved

I'm trying to validate that the input text I get from a user is a valid Solana address. According to the web3.js documentation, the method .isOnCurve() does that: https://solana-labs.github.io/sola...
Papke asked 21/2, 2022 at 3:37

9

I am getting this error: Error: Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data fro...
Addams asked 12/4, 2022 at 21:17

3

Solved

I feel like this should be resolved simply, but after several attempts, I'm just not coming to a resolution. Here is the error I've received: Uncaught ReferenceError: process is not defined 38509 ...
Hormonal asked 30/11, 2021 at 23:37

3

Solved

I am using web3 for my first dapp test and I'd like to make so MetaMask will prompt the user to change the network to Binance (BSC) network if it is not selected already, just like here: How to tr...
Furie asked 5/7, 2021 at 7:43

3

I am new to blockchain. I have done a little bit research and here's my steps to fetching a list of NFTs owned by certain wallet with web3.js balance = ERC721.methods.balanceOf(walletAddress).call(...
Parabolize asked 9/5, 2021 at 17:29

5

Solved

With web3js, how do you figure out that there was 40000 tokens transfer from the transaction's hash?
Catherin asked 28/12, 2017 at 8:49

4

I'm Getting this error when trying to deploy a smart contract with a function: Error: invalid address (argument="address", value=undefined, code=INVALID_ARGUMENT, version=address/5.1.0) ...
Stephanestephani asked 6/5, 2021 at 8:35

4

Solved

I had do some transaction in Binance Smart Chain in Binance-Peg BUSD-T and it worked successfully. But after 5 transactions. I face to a problem that said Returned error: transaction underpriced ! ...
Danadanae asked 14/6, 2021 at 15:1

2

am developing a mobile app using React native, which involves an interaction with web3.js and Problem is RN does not support core Node.js modules, so I had to install npm i --save react-native-cryp...
Tenantry asked 9/4, 2021 at 10:39

4

I am using the ethers.js documentation: https://docs.ethers.io/ethers.js/html/cookbook-providers.html . I am getting the error when setting up the provider -: Uncaught ReferenceError: web3 is not d...
Vanburen asked 21/3, 2020 at 7:56

2

Solved

I'm trying to interact with geth, and I need to create a new deposit address (and be able to control it). How can I implement this with web3.js?
Intolerable asked 8/5, 2018 at 17:35

6

i want to do a transaction in ethereum from account A but the transaction fee should be paid from account B. is it possible in ethereum?
Eccentricity asked 30/6, 2018 at 7:39

6

I want to use "@walletconnect/web3-provider" JS library in my project, but once I installed the library along with Web3 module (they will be used together) npm install --save web3 @wallet...
Worcester asked 5/2, 2022 at 8:1

3

Solved

I am trying to pull a list of token contracts held by a wallet address, similar to how bscscan does, except programmatically. bscscan.com/apis does not have an endpoint, and web3js seems to only re...
Voyage asked 22/6, 2021 at 14:27

4

Solved

Web3.js web3 into the window object. Browser Wallets like MetaMask inject ethereum into the window object. In typescript right now to mitigate compile errors I'm casting as follows (window as any)....
Ashok asked 30/12, 2020 at 9:48

6

Solved

I am using MetaMask for sending transactions to contract in my DApp. I need help in How to Disconnect MetaMask account from my DApp when the user clicks on logout button. Front-end: ReactJS Back-en...
Dunigan asked 6/6, 2021 at 7:53

5

Solved

I'm trying to add Web3 to a React project. I've initalized a new project with gatsby new Then, I've installed web3 npm install --save web3 And when I include web3 in index.js import Web3 from 'we...
Bencion asked 5/4, 2021 at 12:20

2

Solved

I am trying to connect to the metamask from my dapp. following the docs: https://docs.metamask.io/guide/getting-started.html#connecting-to-metamask but when I call eth_requestAccounts method it's o...
Centipoise asked 29/9, 2021 at 13:32

4

currently, I'm practicing solidity. However, I'm a little confused about accessing a private variable in a contract. For example here; address private a; address private b; mapping (bytes32 =>...
Stoush asked 23/5, 2018 at 16:23

3

Am working with Solana Blockchain. Am trying to transfer Solana SOL via Phantom. To this effect I used the code below which was found on Stack Overflow: source link I already have Phantom installed...
Danged asked 12/10, 2021 at 21:0

4

Solved

I have created a ERC-721 contract deployed on ropston network. Using contract I'm creating NFT's and its totally working fine. Now for the transfer part I need to get tokenID of any NFT and transfe...
Jonna asked 2/6, 2021 at 10:12

© 2022 - 2024 — McMap. All rights reserved.