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...
Does it is needed to install npm ethereumjs-tx while using a browser version of it which is directly downloaded from github. If yes then how we can import the ethereumjs-tx module in our script file.  Because both are two different things as my knowl...
compile.js :  const path = require('path'); const solc = require('solc'); const fs = require('fs-extra');  const buildPath = path.resolve(__dirname, 'build'); fs.removeSync(buildPath);  const campaignPath = path.resolv...
I have a node js process that creates a web3 websocket connection, like so:  web3 = new Web3('ws://localhost:7545')   When the process completes (I send it a SIGTERM), it does not exit, but rather hangs forever with no console output.  I regi...
currently i'm working on a ethereum dapp(voting), in my smart contract i have a function to fetch candidate list of type bytes32[] , on the java script side i'm not getting the values instead 0x only  How to parse the value , below is the cod...
Problem  I would like to have a website that updates live the user's wealth from a private Ethereum blockchain.   Current Solution (broken)  I opened a websocket to a private ethereum blockchain that is mining, I would like to update my coinbase...
I am simply trying to return the Balance value of an ethereum account using the web3 api, I would like to get that value in the $scope so I could use it in my html. Unfortunately I always get a value is undefined. I suspect it is coming from the fact...
I want to check the balances of my wallets with the geth console. Therefore i did try to use geth in light mode. But when i use:  geth console --syncmode light  It gets stuck at block number 0 and it doesn't start to sync. Here are some results:...
Sorry if it is duplicated question. What does "_" operator make?  This code is from Ethereum contract manual: https://ethereum.org/token#deploying  contract owned {     address public owner;      function owned() {         owner = msg.sender;...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.