I am relatively new to Blockchains and when I execute the following command I am getting an error.

contract mortal { 
    address owner; 

    function mortal() { 
        owner = msg.sender;
    function kill() {
        if(msg.sender == owner) suicide(owner); 

contract greeter is mortal { 
    string greeting;

    function greeter(string _greeting) public { 
        greeting = _greeting;
    function greet() constant returns (string) { 
        return greeting;


Invalid JSON RPC response: undefined
at InvalidResponse (:-81076:-41)
at send (:-154580:-41)
at solidity (:-131712:-41)
at :1:1**

What is going wrong?


1 Answer 1


This almost certainly means you do not have a geth node running. The RPC response is invalid because there wasn't one.

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.