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 [ethjs]

The tag has no usage guidance.

1
vote
1answer
13 views

Error when trying to set a value to 0

I have a mapping that maps addresses to uints: mapping (address => uint256) mapAddress; A function then assigns a counter to the address: mapAddress[msg.sender] ++; This gives me 1. The ...
2
votes
0answers
90 views

MetaMask/mascara integration for no metamask users

I am creating iframe based metamask. github source HTML <script src="https://wallet.metamask.io/metamascara.js"></script> <script src="/javascripts/ethjs-query.min.js"></...
3
votes
2answers
779 views

How to convert Hexadecimal values into readable format?

I'm using etherscan API to fetch the event logs: http://api-ropsten.etherscan.io/api?module=logs&action=getLogs&fromBlock=3147081&toBlock=latest&address=...
2
votes
0answers
174 views

web3.js or eth.js?

After receiving the warning: MetaMask: web3 will be deprecated in the near future in favor of the ethereumProvider I attempted to use eth.js But I am not convinced that it is production ready. ...
1
vote
1answer
781 views

How to convert BN result into readable string or number in ethjs?

I'm receiving the result in BN format. How can I convert it into actual string or number? I'm using ethjs library to interact with Smart Contract. token.totalSupply().then((totalSupply) => { // ...
2
votes
0answers
194 views

ethjs - call function with multiple parameters

In my smart contract i have two functions: function getPawnOfSponsorship(address invitedPerson) public view returns(uint) { return (pawnList[msg.sender][invitedPerson]);} function ...
2
votes
1answer
22 views

eth.balance() shows random alphanumeric content

const HttpProvider = require('ethjs-provider-http'); const Eth = require('ethjs-query'); const eth = new Eth(new HttpProvider('https://rinkeby.infura.io/')); eth.getBalance("...