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...
I'm trying to start using Ethereum Web3.js with node 6.11.1 on a macosx  I installed web3 with the following command:     npm install web3   Then i launch this - apparently - simple node command:     Web3 = require('web3');   Well, it ret...
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...
In my previous post I found out how to allow a user input a number of ERC20 tokens, and return the value with the number of decimals.   Say that the number of decimals for ERC20 is 4 and the user inputs 1.5 we will show them 1.5000 by using .toFixed(...
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 am learning to use web3js in this case to create an ethereum address and a private key to make a simple dapp.  Can anyone tell me to use this web3js? If you are pleased, I ask for help on how to use it :)  My achievement recently studied to see the...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.