Questions tagged [ethjs]
The ethjs tag has no usage guidance.
16
questions
1
vote
1
answer
105
views
Maximum calldata size per block
I'm trying to use calldata to store data. It works fine with some smaller datasets (50kb), but for some reason when I try store ~150kb I get the following error
code
:
-32603
message
:
"[ethjs-...
14
votes
8
answers
74k
views
Error: [ethjs-query] while formatting outputs from RPC: "message":"invalid sender"
I'm using MetaMask with an app I'm developing, and previously working functions are now returning a quite ferocious error.
This error has been duplicated on a number of functions in the platform, so I ...
1
vote
0
answers
85
views
MetaMask not prompting for transaction when calling method with ethjs
I am trying to interact with a contract that i've created on Rinkeby (0xff1175c8030083dbf211bf6e2e1e7e1182a8f8bb)
I have my provider detected, wrapped with ethjs. When I try to read the contract, ...
0
votes
0
answers
165
views
why the below error is thrown when doing transaction with metamask to the truffle
the error is thrown is shown in the below picture.While doing the transaction an error stating ethjs-rpc with payload["id:761..,Jsonrpc:"2.0","params":"0xf8..]
0
votes
2
answers
1k
views
How to debug a "rpc error with payload"
Debugging smart contract errors can be surprisingly hard. There is one particular kind of error that annoys me the most: the infamous rpc error with payload.
For instance, just a few hours ago, while ...
0
votes
0
answers
287
views
web3.js error ethjs-query gives out error in write contract functions
Hi I am getting error
Error: [ethjs-query] while formatting inputs '[{"0":false}]' for method 'getTransactionReceipt' error: Error: [ethjs-format] hex string '[object Object]' must be an ...
0
votes
1
answer
84
views
metamask fails to be enable on the ethjs examples
I enabled the metamask by uncommenting the section regarding metamask on ethjs examples from Github but they were no connection and examples seem not been deployed. I am wondering if there is ...
3
votes
1
answer
1k
views
ENS name reverse is not working on Ethereum address
I'm trying to both resolve and lookup using "ethjs-ens" the lookup call is working correctly. However, the resolve call is throwing an empty error.
The address I'm using on the reverse function is ...
1
vote
1
answer
643
views
What is the difference between web3.js and ethjs?
I've seen people using both in their codes - https://github.com/ethereum/web3.js and https://github.com/ethjs.
Do I need both? Does ethjs depend on web3?
1
vote
1
answer
32
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
0
answers
181
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"></...
4
votes
2
answers
5k
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
0
answers
473
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. ...
10
votes
1
answer
10k
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
0
answers
411
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
1
answer
37
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("...