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 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 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...
This is the solidity code that I am trying. Compiling of the code works fine. However, when I call the function send() via javascript it throws exception : throw new Error('invalid address');  pragma solidity ^0.4.6;  contract Agreement {...
Can you please  explain me why the following code is receiving the same trx hash twice ? And do you have any recommmendation to avoid that ?   var Web3 = require('web3')     const web3Subs = new Web3(new Web3.providers.WebsocketProvider('...
I have a problem.  I have this contract in solidity:  pragma solidity >=0.4.21 <0.6.0;    contract SimpleStorage {   string public storedData;   uint public i;     constructor(string memory initVal) public {     storedData = initVal;     i = 0;...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.