I am able to connect to private ethereum network and able to do the transactions from Metamask, but while deployment of smart contract from remix IDE, it launches MetaMask and i get below error while I confirm the transaction. Please guide.

ALERT: [ethjs-rpc] rpc error with payload {"id":3682247715857,"jsonrpc":"2.0","params":["*****************"],"method":"eth_sendRawTransaction"} Error: invalid sender

I am deploying very basic and first smart contract.

pragma solidity ^0.4.4;

contract MyFirstContract {
    string private name;
    uint private age;

    function setName(string newName) {
    name = newName;

    function getName() returns (string) {
    return name;

    function setAge(uint newAge){
    age = newAge;

    function getAge() returns (uint){
    return age;
  • Please specify your set-up better. Are you using Geth?
    – Rick Park
    Commented Jan 10, 2019 at 15:46
  • Yes i am using geth and golang, i have done mining on the private ethereum network. I have more than 1000 ETH balance in my account generated via mining in pvt eth network. successfully able to do the txs from MEtamask with pvt accounts, however not working the smart contracts deployments P.S, I am able to do the same transaction on Ropsten network successfully. Commented Jan 10, 2019 at 15:55
  • As you are trying to deploy contract on private ethereum network. Choose web3 provider option from Environment dropdown in Remix IDE.
    – sjMalik
    Commented Jan 11, 2019 at 11:59
  • Yes i did use Web3 provider option. Commented Jan 11, 2019 at 15:59
  • Why do you pass trough metamask? You should go directly on the RPC if using the direct web3 provider link. Something is different from what you think it is... check again
    – Rick Park
    Commented Jan 12, 2019 at 5:58

1 Answer 1


This could be a lot of things. A couple of questions, are you using Ganache? If so did you import your private keys from ganache to your metamask? If not then you will have zero eth to execute the transaction

  • not using ganache, imported the private keys manually. and balance from pvt ethereum network is reflected in the MEtamask account, have 1000 ETH of balance from pvt eth netowork. Commented Jan 10, 2019 at 15:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.