I'm currently using 0.2x.x version of Web3 Javascript API. I deployed my custom ERC20 token by creating smart contract in solidity (on REMIX IDE). I installed the MetaMask and had a test on https://wallet.ethereum.org/ to send some custom ERC t...
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...
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...
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...
I need to operate on Big Numbers but I need the results to be precise, like below:  const BN = require('bn.js'); var a = 11060622312717714974 var b = 1570481433500000000000; console.log(a/b); //0.0070428227146040415   When I use Big Number I...
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...
Anyone know why my parameter is being seemingly ignored when I run the dapp?   This function is called when I press the button to send an X amount of money to a ganache account who's address I input into an HTML form while using the dapp.      Ap...
I'm trying to use PHP and Cron to send Ether from an existing account using web3 or something similar, any tips on how I can accomplish this?  I have JSON in an SQL table {"address":"0x22b853A8Df90BF9A7e21445C16FBbEaa43e0c307",...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.