Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [typescript]

The tag has no usage guidance.

1
vote
1answer
28 views

Calling transfer returns true but doesn't perform the transfer

I have the following simple transfer method in my contract to transfer my erc20 token to another account: function transfer(address to, uint tokens) public returns (bool success) { balances[msg....
7
votes
3answers
692 views

How to use web3.js@1.0.0-beta34 with TypeScript?

Here is a minimal code for testing: import * as Web3 from "web3" const web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:7545")) const main = async () => { const blockNumber = ...
1
vote
0answers
209 views

Problem with web3.eth.personal.ecRecover

I'm using web3 v1.0 beta33 ethereum packages to do some signing and address recovery in a javascript/Angular5 app. I picked this version because I didn't see this function in 0.2x web3 versions' ...
0
votes
1answer
2k views

Getting Metamask account's balance using fromWei

Using web3 javascript code to get selected account's balance in Metamask and show it in html, web3.eth.getCoinbase(function(err, account) { if (err === null) { App.account = account; $("#...
0
votes
0answers
477 views

Script: When Hashrate to low => reboot PC

first sorry for the bad english I'm looking for a script that leaves me with Claymore the total Hashrate and the respective GPU's. I've written my own troubleshooting batch, if error, should Miner or ...
0
votes
0answers
108 views

Guard against out of sync Infura nodes before getting an ETH balance

Due to heavy load, it seems that Infura has some really out of sync nodes. As an example, these are the latest Kovan blocks that were returned from three consecutive calls: 4974498, 4716916, 4973641. ...
3
votes
2answers
3k views

How can I use web3.js with Angular 2

I'm trying to import Web3 to my component files which is written in Typescript but I couldn't make it. I used npm install --save web3-typescript-typings and added "include": [ "../node_modules/...