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...
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...
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...
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;...
I'm trying to import the Ethereum web3.js library into a React Native project.  I've followed the React Linking Libraries instructions, installing the web3.js package and linking it with the commands:  $ npm install web3 --save $ react-native...
I am writing test cases for my contract and have to delay the assertion check because it is time sensitive. getCompletedCampaigns() will have the address of the Campaign whose deadline has passed.  it("Time sensitive check", async () => {...
I want to create my own Eth token, using Ethereum wallet and the code from this simple tutorial given in the ethereum.org website.  I don't have a programming background, knowing only basic info about JS and need a lot of help.  Custom ETH tokens...
I have been trying to use the web3 library with JavascriptCore in Swift. A web3 instance is created by running  var web3 = new Web3(new Web3.providers.HttpProvider("[the provider im using]"))  This is the code I am trying to do this in Swift...
I know that javascript is asynchronous and if i make a for loop after .then then the loop ends and only then do the object promise become clear, but I can't for the life of me fix this code snippet, maybe someone can help me. My goal is to loop a...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.