Questions tagged [web3-providers]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
5 views

Does IPFS require Internet access?

Sorry if my question is wrong, I am new to IPFS. Does IPFS require Internet Access mandatorily ?
user avatar
0 votes
0 answers
15 views

Metamask installed in browse chrome but when I check in console window.ethereum it respond undefined

I am trying to connect my contract through infuria in Rinkeby and connect Metamask to web3 as injection to give autherization. I successfully installed Metamask and deployed my contract, the problem ...
user avatar
  • 101
0 votes
1 answer
26 views

web3modal error during Wallet Connect function for web3 in javascript

i try to follow github web3modal guide to con figure my wallet connect in javascript . pls help me on this issue. appreciate https://github.com/Web3Modal/web3modal-vanilla-js-example html <...
user avatar
  • 17
0 votes
0 answers
10 views

Get provider with RPC URL - Mumbai Testnet

I build a new website using ReactJS and ethers.js, and I'm trying to initiate a new provider on mumbai testnet using https://matic-mumbai.chainstacklabs.com RPC URL when metamask is not installed. The ...
user avatar
0 votes
0 answers
16 views

Hardhat throwing 'missing revert data in call exception; Transaction reverted without a reason string'

After installing Hardhat's npm package latest version following this brief guide and setting up my first 'sample project', i tried to create a script and deploy a contract on the BSC mainnet. I edited ...
user avatar
0 votes
1 answer
62 views

Module not found: Error: Can't resolve 'crypto' in '/Users/user/Desktop/esample/react-minting-website/node_modules/eth-lib/lib'

I am building a development web 3 project and can't figure out why I get this error WARNING in src/App.js Line 2:10: 'useWeb3React' is defined but never used no-unused-vars Line 4:8: ...
user avatar
0 votes
1 answer
27 views

error:Expected private key to be an Uint8Array with length 32

var Tx= require('ethereumjs-tx').Transaction const Web3=require('web3') const web3= new Web3('HTTP://127.0.0.1:7545') const account1='0x06e61BDdC2a45A7523C62c0DcC4E15D842BBa9BA' const account2='...
user avatar
0 votes
1 answer
41 views

TimeOut excpetion on websocket using Nethereum

I'm working on a frontrunning bot using Nethereum. the problem I'm facing is the following, once I get all the pending transaction hashes through the websocket, I pass the hash trhough ...
user avatar
1 vote
0 answers
75 views

How to mock ethereum provider for unit testing of REST API with jest?

How to mock a ethereum provider for unit testing of REST API? REST API has following basic structure(index.js)where provider,wallets are created using web3HttpProvider and etherjs when server is ...
user avatar
  • 11
0 votes
0 answers
41 views

Integrating Coinbase Wallet using Web3Model for the Avalanche Network

I am looking at integrating Coinbase Wallet to my dApp which will run on the Avalanche Chain as I have seen it's compatible with it: You can check at Coinbase Wallet for Developers. I have been ...
user avatar
  • 103
0 votes
0 answers
56 views

How to get balance on metamask all network [bsc , eth, cro, etc] using web3modal

how to display the balance for metamask using web3modal with various networks, for example I am on the mainet bsc network I display the bnb balance, and if I use the ether network what appears is the ...
user avatar
0 votes
1 answer
20 views

Why am I failing to interact with a smart contract I found on Etherscan.io?

I am getting the below error trying to call an existing smart contract I found on Etherscan.io function using call(). Error: Error: Returned values aren't valid, did it run Out of Gas? You might also ...
user avatar
  • 107
0 votes
0 answers
6 views

Get Limit Price from thegraph limit price order

Trying to get price from limit order that was been summited to contract but when call theGraph query: https://api.thegraph.com/subgraphs/name/gelatodigital/limit-orders-fantom-ii/graphql, I getting ...
user avatar
  • 111
0 votes
0 answers
4 views

Error Web3 Connection only on iPhone when sending BNB

Basically, I get an error while sending funds on from iPhone. On web, it works perfectly fine, but on the phone, I get the following error: undefined is not an object (evaluating 'web3.eth') I don't ...
user avatar
0 votes
0 answers
25 views

Getting an: did it run Out of Gas? error when calling a smart contract method with web3js

I am getting an error trying to call an existing smart contract function using call(). Error: Error: Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not ...
user avatar
  • 107
0 votes
2 answers
25 views

Why am I NOT able to interact with ALL of my smart contract functions via my HTML GUI?

I have noticed something very strange... I have a smart contract with two functions. I am able to interact with all of them (In Remix, Web3 Provider Environment, pragma solidity ^0.8.2) perfectly well....
user avatar
  • 107
0 votes
1 answer
28 views

Should all state-changing functions to a smart contract go through MetaMask?

For a Dapp that is using its own node provider such as Infura or Alchemy, all read operations can go through this node, but any state-changing operations will require a signer. These node providers do ...
user avatar
  • 13
0 votes
1 answer
261 views

How to get the returned data from a smart contract function using ethers.js?

I'm trying to consume a function from a smart contract using ethers.js. The function retrieve the info of a user logged before (with the help of other function). This is the function snippet. function ...
user avatar
  • 111
0 votes
1 answer
16 views

How to accept Ethereum payments on a membership video streaming site?

What is the best way, or are there any regulated payment merchants besides BitPay, to accept recurring subscription fees in Ethereum, for example, on a video streaming site? Or would it be better to ...
user avatar
0 votes
0 answers
53 views

TypeError: Cannot read properties of undefined (reading 'getTokenToEthInputPrice')

I have an issue with getEthToTokenInputPrice Here is part of my code that is not working. const web3_utils = require('web3-utils') const Web3 = require('web3') const ETH_AMOUNT = web3_utils.toWei('1',...
user avatar
  • 101
0 votes
0 answers
76 views

web3.eth.filter error. How to track incoming transactions to ethereum wallet via web3.js (in Next-JS)?

I want to create a website that will transfer money in real time from my ethereum wallet to another ethereum wallet. To do this, you need a script (.js) to monitor the balance of my wallet in real ...
user avatar
  • 117
0 votes
1 answer
34 views

Need help understanding "the template code provided by Metamask for how we can detect to see if the user has Metamask installed"?

I'm going through Lesson 6 Ch. 2 of Cryptozombies (Title: Web3 Providers), and it shows me this: "Here's some template code provided by Metamask for how we can detect to see if the user has ...
user avatar
0 votes
0 answers
16 views

How to buy ETH by "in app purchase" in iOS?

In my iOS nft (wallet & minting) project, when a user creates a new wallet, initially it has 0 ETH. So I want to buy some ETH/Matic for minting or other stuffs.  Need to know, how can I buy some ...
user avatar
0 votes
0 answers
34 views

Can't get MetaMask accounts to respond correctly

here is what I'm working on. Ganache is running on 127.0.0.1:7545 in my VSC, I ran the command truffle migrate --reset in MetaMask, I choose to add new network with the RPC url: HTTP://127.0.0.1:7545, ...
user avatar
0 votes
0 answers
26 views

Cannot execute write transactions to dApp using coinbase wallet

I'm trying to integrate the coinbase wallet into my dApp. I'm using the official SDK to establish a connection with the injected provider. I'm able to send read requests to my smart contract, however ...
user avatar
0 votes
0 answers
52 views

How do you separate development environments between networks?

I'm utterly confused at how to properly navigate certain aspects of the development workflow between ethereum networks. How I understand it: network <-> front-end dapp LOCAL: hardhat localhost (...
user avatar
1 vote
2 answers
64 views

Uniswap V1 Factory contract with ethers.js not working

I have tried the following code to get exchange address of DAI(0x6B175474E89094C44Da98b954EedeAC495271d0F). But it's giving some strange error. Any idea what's going wrong? (I have verified the ...
user avatar
0 votes
0 answers
44 views

How do I access a smart contracts method that is **msg.sender** sensitive?

I successfully deployed a smart contract via the Remix Web3 Provider Environment. My deployed contract has two public view methods of interest, namely the: viewAllGifts() method, and the viewMyGifts() ...
user avatar
  • 107
0 votes
0 answers
86 views

JavaScript how to create provider for any Ethereum RPC URL?

In my node.js application I'm trying to do some direct RPC calls rather than going through some abstraction such as web3.js. Are there any node modules that offer a HTTP provider similar to the one ...
user avatar
0 votes
0 answers
83 views

How are ERC 721 based DAO created?

I am trying to create a NFT DAO, ERC 721 based after ERC 721 vote feature came in recently. Tally is the only tool allowing for that. But I wanted to try and experience traditional DAO creation first. ...
user avatar
0 votes
0 answers
78 views

How can I pass a JSON object to a smart contract?

let's say I have a JSON object containing addresses and token balances as key pairs: {"0x0...":"10", "0x0...":50, "0x0...":200} I'm building a smart contract ...
user avatar
  • 21
0 votes
1 answer
39 views

How do I find token amount on Etherscan after the contract is deployed?

When I copy my connected test address from metamask onto etherscan the test tokens from Ganache do not show up. After I deploy a contract, there is no etherscan address. Message: view on etherscan ...
user avatar
0 votes
0 answers
34 views

What are the Node Providers for Avalanche Network

Is there any node providers for Avalanche network so that I can get realtime data from blockchain? I have tried Moralis and Graph, but they have 5-10 seconds lagging behind the blockchain. So I need ...
user avatar
0 votes
0 answers
21 views

How to achieve whitelist function using RPC proxy?

Whitelist function examples: Can only send transaction to Aave and ensure the receipt is in whitelist. aave.deposit(token, amount, receipt, _); aave.withdraw(token, amount, receipt); Can only send ...
user avatar
0 votes
1 answer
112 views

"invalid sender" when sending a signed transaction on bsc on PHP

I'm trying to replicate a script that I have already running in nodejs in php. On PHP I'm using "web3p/web3.php": "dev-master", "web3p/ethereum-tx": "^0.4.3" ...
user avatar
  • 1
0 votes
1 answer
24 views

What does this Smart contract mean?

can I get an explanation about this section of the smart contract especially the supply function. and what does totalSupply = _supply * 10**_decimals; means? I will like to created a mintable token ...
user avatar
  • 1
0 votes
0 answers
163 views

Get account icon and name

I'm using web3.js and metamask-extension-provider in my project to get the signature and public address. Tell me, can I get the name and icon of the account?
user avatar
0 votes
0 answers
19 views

Use web3 with metamask to connect to Binance Smart Chain provider in browser [duplicate]

I am developing a Dapp for the Binance Smart Chain and a issue appeared regarding setting up the metamask provider. In ethereum, I'd set up the provider like that (using next.js): import Web3 from &...
user avatar
1 vote
0 answers
39 views

How to apply a signer from `ethjs-provider-signer` to `eth-provider` instance?

To mimic Metamask plugin behavior (for Dapp testing purposes) I packed a simple provider chimera-provider which is just a modified ethereum-provider from @metamask/providers package (only HTTP version,...
user avatar
0 votes
0 answers
31 views

How to Verify Contract Address Ownership on BscScan

We own a multi-sig wallet with Gnosis and we are trying to Verify Contract Address Ownership on BscScan and we need some guidance. There are no instructions on how to do so from what we have ...
user avatar
  • 1
0 votes
1 answer
629 views

Remix IDE not connecting to Ganache Web3 Provider

I'm trying to deploy my smart contract to Ganache (perferably the Ganache desktop app but this issue is also occurring for ganache-cli). When I select "Web3 Provider" under the "...
user avatar
0 votes
1 answer
2k views

TypeError: Cannot read properties of undefined (reading 'Contract') - Web3, Next.JS

I'm trying to create a small web3.0 app, using next.js. I have deployed my contract on rinkeby test network, and I am able to check the functionalities using Remix, work properly. I have also worked ...
user avatar
0 votes
0 answers
22 views

Quick ways to learn web3.js please?

could you please suggest some way's to learn about web3.js quickly? I have gone through https://web3js.readthedocs.io/en/v1.5.2/ it is really good, but it is so long and difficult to memorize. It's ...
user avatar
0 votes
0 answers
80 views

Listening for exchange events using brownie

I'm trying to find a way to listen for uniswap pricing 'infinitely' then code some logic to possibly arbitrage between different exchanges. Please link me to any relevant projects if possible. I used ...
user avatar
0 votes
1 answer
394 views

ethers web3provider can't connect to metamask the second time

I am developing a React NFT marketplace on Polygon where a user can create, buy and relist an NFT. The issue is I am unable to connect to Metamask/web3provider for the second time after successfully ...
user avatar
1 vote
1 answer
545 views

Metamask provider not detected on mobile

I have build a webapp to MINT our ERC721 token using Webflow. It works fine on desktop but the window.ethereum is never injected on mobile (browsers & metamask application) Here is my code to ...
user avatar
  • 111
4 votes
1 answer
370 views

Do we need to use both Metamask and Alchemy as providers?

I was using metamask (window.ethereum) as my Web3 provider but for production was going to switch to Alchemy and realized that the provider.listAccounts() method stopped working with Alchemy provider. ...
user avatar
  • 140
1 vote
0 answers
110 views

Read from a testnet Rinkeby contract with hardhat script

I am trying to read state variables (using hardhat scripts) from a contract deployed on the Rinkeby network. I use the script below but it returns 'undefined' as if it can't read from the contract. ...
user avatar
0 votes
0 answers
64 views

Ganache-cli server and Webjs not connecting : Returned values aren't valid, did it run Out of Gas?

I am trying to connect web3js in the javascript section of my html to my ganache-cli nodejs server ganache deployment script: const ganache = require("ganache-cli"); const Web3 = require(&...
user avatar
  • 1
1 vote
0 answers
2k views

reason: 'missing revert data in call exception' - Alchemy provider and ethers

I am following Alchemy tutorial and i keep getting errors when im trying to interact with my smart contract. any suggestion why? I keep getting the error: reason: 'missing revert data in call ...
user avatar

1
2 3 4 5 6