All Questions
15 questions
0
votes
2
answers
553
views
How to solve Unhandled Rejection (Error): invalid address error with web3 js
Whenever I run the code I get an error saying
"Unhandled Rejection (Error): invalid address (argument="address", value=["0xF628D397c2C1c4cB485BDF5441ac723B229f4F8f"], code=...
0
votes
1
answer
150
views
Problem approving allowance using external Metamask Account with local Ganache
I am using React, to interact with a smart contract deployed on local Ganache, I can approve allowances to accounts generated by Ganache, but I can't approve allowance with Metamask accounts which ...
0
votes
0
answers
177
views
How to send transaction from metamask to another metamask account using smart contract method
I have two accounts in metamask imported from ganache and well conected , when I called the function buy, web3 always used my default account in the metamask, I want to send transaction from my ...
2
votes
1
answer
835
views
Cannot call function in openzepplin ERC1155 contract via web3/metamask
I am trying to call the balanceOf function in a pretty barebones openzepplin ERC1155 contract through metamask.
I am using web3 only to generate the ABI, and metamask to actually send out the call.
...
1
vote
0
answers
51
views
Interaction between 2 nodes of ganache
I am making a project on blockchain where in I am using ganache for private blockchain, meta mask to interact with the same.
Since ganache provides 10 nodes in the private blockchain, I want all the ...
0
votes
1
answer
1k
views
Metamask not returning the current address
I am using web3.eth.getcoinbase() function to get the address of the current account but instead, it returns null. Can someone help me with this? This is the code
web3.eth.getCoinbase(function(err, ...
0
votes
1
answer
149
views
Web3 call should return different result based on time passed
I am experiencing a weird issue. I am building a DApp where I want the new season of the game to start every 5 minutes (for testing purposes). However, web3 call returns old data, seems that it cached ...
0
votes
2
answers
1k
views
Web3 is not connecting to metamask. TypeError: Null object returned to account
I am currently following the tutorial in Dapp University YouTube channel where I am coding my own ERC-20 token https://www.youtube.com/watch?v=XdKv5uwEk5A&t=21611s. At 5:51:00 onwards you can see ...
0
votes
2
answers
604
views
How DApp actually talks to Ganache ethereum node?
Both Metamask and web3.js seems to be enabling a DApp communicates to a remote ethereum node.
There are a few different aspects to developing blockchain applications with Ethereum:
Smart contract ...
3
votes
2
answers
1k
views
Metamask injects one account in web3, but calls contracts using another account
Building a React app, MetaMask injects web3, I get accounts[0] from getAccounts(), then pass it to my contract functions together with other parameters. I want my modifiers to lock incoming function ...
0
votes
3
answers
3k
views
Metamask not returning current account address with web3js and ganache
How to return the address of my current account from Metamask? I have tried with web3.eth.getCoinbase() but this and metamask has two different address.
web3.eth.getCoinbase() returns me the first ...
2
votes
0
answers
422
views
Truffle deployment with metamask to ganache leads private key error
I'm using Truffle, web3js and Metamask to build a webapp. I'm using ganache for local testing. I'm trying to deploy a contract with
import TruffleDeployer from 'truffle-deployer';
import ...
0
votes
1
answer
223
views
truffle-contract: cannot test method before real consume ether method
I am using truffle-contract for connecting between frontend and smart contract. Currently, I can call method on smart contract and can consume ether successfully.
const result = await instance....
1
vote
1
answer
2k
views
JSONRPC error on sendSignedTransaction
I run ganache, truffle and metmask. If I run the code below I get an error on the this.web3.eth.sendSignedTransaction() function:
EDIT: changed my code to the following.. Error remained the same ...
4
votes
4
answers
627
views
Truffle Drizzle-box fails with TypeError: (0 , _drizzle.generateContractsInitialState) is not a function
Right after unboxing Drizzle-box I'm getting a
TypeError: (0 , _drizzle.generateContractsInitialState) is not a function.
Ganache is running on localhost:8545, contracts are deployed, Metamask ...