I started learning ethereum and web3js and noticed some functions on Web3js are asynchronous. What i want to achieve is get the account balance of a wallet and use the data for something else. My code below  function getAccountBalance2(address){...
I have an issue with transactions on my local ethereum network - at some point, transaction hangs & spends a lot of ETH from my account.     Here's a sample code:  async function send(toAccount, weiVal) {   let account = await w3.getDefAccoun...
Context: I want to use blockies to render an identicon on the page, i get the defaultAccount from web3, for this, the user has to be logged on to metamask with a selected address from his wallet.   The problem: the web app seems to not detect the web...
before marking this question as a duplicate please notice that I'm not using truffle :)  So the problem is , everytime I send a transaction to my smart contract I get the error from title.  const express = require('express'); const router...
I am new to web3 and ethereum blockchain. I tried broadcasting a transaction using the following code but it always gives me an invalid sender error.The sample code is shown below.  const Tx = require('ethereumjs-tx').Transaction;  const Web3...
I have Angular 7 project with Web3js for ethereum. Unfortunately after build IE11 shows error identifier expected.  I am using angular cli 7.3.9 angular 7.  What is the correct way to transpile imported modules, from node_modules like Web3js?  const...
I have a project in ReactJs where I use web3.js to read from the smart contract and I an Ethereum client provided by Infura. Problem is, when I access my project in Google Chrome, everything works fine.  If I access my project via Microsoft Edge, I a...
i want to ask about get transaction list with web3js.  i used private network, and already got some transaction before. When i check my transaction count, the result is 13 transactions.  now i want to get the transactions detail and put to my transac...
I have been trying to send a transaction on the Ethereum testnet Rinkeby for the past few days and keep getting this error no matter how much I increase the gas and gwei to. "Unhandled rejection Error: Returned error: intrinsic gas too low"...
I'm trying to get a simple node project off the ground but have run into issues using the import keyword.  I'm attempting to import a few functions from some modules from the 0x.js and @0xproject/connect packages but when I try to run my main...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.