Categories
Cryptocurrency Ethereum Mastering Development

MetaMask custom RPC connection error with private ganache-cli, EC2

Currently I am trying to build private dapp using ganache-cli as a blockchain backend with aws ec2 instance. I get the expected result from terminal. request: curl -X POST –data ‘{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":67}’ localhost:8545 response: {"id":67,"jsonrpc":"2.0","result":"EthereumJS TestRPC/v2.10.2/ethereum-js"} However, I get following error when I set up MetaMask’s custom rpc like: {MY_PUBLIC_IP}:8545 even though my ganache docker (and […]

Categories
Cryptocurrency Ethereum Mastering Development

My is metamask returning RPC Error: Error: [ethjs-rpc] rpc error with payload, metamask shows failed [object, object]

My metamask shows ALERT: Transaction Error. Exception thrown in contract code. When I am about to transfer using truffle, open zeppelin and ganache on localhost:7545 after confirming the transaction it shows inpage.js:1 MetaMask – RPC Error: Error: [ethjs-rpc] rpc error with payload {“id”:6736485951990,”jsonrpc”:”2.0″,”params”:[“0xf86f048504a817c800836170d494ef9b511c0ddaea1f38ed82becb523a414dc6d7cc8806f05b59d3b2000080822d46a0fa7b64f06fe5520527e3ea35a445d3c461ca97ac25d73062caa9d64025fde7aaa02a5127f46ea982b6b71fd88ebe2a22679b45de0ebaef32137a65171f562caa03″],”method”:”eth_sendRawTransaction”} [object Object] {code: -32603, message: “Error: [ethjs-rpc] rpc error with payload {“id”:67…method”:”eth_sendRawTransaction”} […]

Categories
Cryptocurrency Ethereum Mastering Development

got response data to nonsencical eth_call request. What is that response?

When I call a seemingly nonsensical transaction on mainnet and rinkeby. ethereum.send(‘eth_call’, [{‘from’:’0x0000000000000000000000000000000000000000′, ‘to’:’0x0000000000000000000000000000000000000002′, ‘data’:”}]) I get some result: {“id”:1,”jsonrpc”:”2.0″,”result”:”0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855″} What is that response data?

Categories
Cryptocurrency Ethereum Mastering Development

Metamask RPC Error

I am getting n RPC error and I looked at other questions with the same title but it looks like they are having different issues. I have a Smart contract with 0.5.0 Solidty that looks like this: pragma solidity ^0.5.0; contract FileStorage { uint public fileCount = 0; struct File { uint id; string username; […]

Categories
Cryptocurrency Development Ethereum

RPC error when interacting with contract using Ganache GUI, but it works fine when using Ganache CLI

I have a truffle project, if I migrate it onto ganache-cli and then interact with my contract (via Metamask) it works great. But if I try and do the exact same thing using ganahe-gui the contract deploys fine, but interacting with it fails. This is the error: Error: [ethjs-rpc] rpc error with payload {“id”:406503133755,”jsonrpc”:”2.0″,”params”:[“0xf8ab06843b9aca008303cb1794071faee0d32e420c88295802a65758a924b5626201b844d6febde800000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000822d45a087a8df0b863c944ad2f79551800f21289efac79e74d62a8b0c3d7d5580ec4df5a01d92fd24ee5a418df0184bc61db21dd36719ce2a234d11638e092a9c4eb08bca”],”method”:”eth_sendRawTransaction”} [object […]