As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [ethjs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer

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-...
James's user avatar
  • 125
14 votes
8 answers

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 ...
The Renaissance's user avatar
1 vote
0 answers

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, ...
dievardump's user avatar
0 votes
0 answers

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..]
user61878's user avatar
0 votes
2 answers

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 ...
e18r's user avatar
  • 688
0 votes
0 answers

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 ...
Syed Zain Hasan's user avatar
0 votes
1 answer

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 ...
user57137's user avatar
3 votes
1 answer

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 ...
Juan Carlos's user avatar
1 vote
1 answer

What is the difference between web3.js and ethjs?

I've seen people using both in their codes - and Do I need both? Does ethjs depend on web3?
TThom's user avatar
  • 49
1 vote
1 answer

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 ...
Ruham's user avatar
  • 943
2 votes
0 answers

MetaMask/mascara integration for no metamask users

I am creating iframe based metamask. github source HTML <script src=""></script> <script src="/javascripts/ethjs-query.min.js"></...
artgb's user avatar
  • 155
4 votes
2 answers

How to convert Hexadecimal values into readable format?

I'm using etherscan API to fetch the event logs:
Sowmay Jain's user avatar
2 votes
0 answers

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. ...
Phillip Gibb's user avatar
10 votes
1 answer

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) => { // ...
Sowmay Jain's user avatar
2 votes
0 answers

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 ...
user3579222's user avatar
2 votes
1 answer

eth.balance() shows random alphanumeric content

const HttpProvider = require('ethjs-provider-http'); const Eth = require('ethjs-query'); const eth = new Eth(new HttpProvider('')); eth.getBalance("...
Sathyam Lokare's user avatar