I try example from book "Mastering EOS". I have written hello.cpp:

#include <eosio/eosio.hpp>    
using namespace eosio;

class [[eosio::contract]] hello: public contract {
    using contract::contract;

    void hi ( name user) {
        print ("Hello, ", user);

(note: I changed eosy::action to eosio::action After compiling eosio-cpp hello.cpp are warnings:

Warning, empty ricardian clause file
Warning, empty ricardian clause file
Warning, action <hi> does not have a ricardian contract

and appear files: hello.wasm and hello.abi Next I try:

cleos create eosio account hello1 MY_PUBLC_KEY -p eosio@active

where paste key in place MY_PUBLC_KEY is error: OwnerKey is required Next I start nodeos and try

cleos set contract hello ~/CONTRACTS_DIR/hello1 -p hello.active

is error:

Publishing contract...
Failed to connect to nodeos at; is nodeos running?

although nodeos is running.

1 Answer 1


Check whether nodeos was run with the option --plugin eosio::chain_api_plugin. This option can be put in config.ini like plugin = eosio::chain_api_plugin.

  • OK, but now is "Error 3120006: No available wallet \n Ensure that you have created a wallet and have it open". I am green is EOS and it may be related to previous command.
    – Andrzej
    Nov 1, 2020 at 12:30
  • Run cleos wallet unlock with wallet password. If there's no jobs for 15 mins, wallet is locked automatically.
    – conr2d
    Nov 1, 2020 at 13:04
  • I have wallets: Scatter and Anchor with different passwords
    – Andrzej
    Nov 1, 2020 at 15:16
  • No, cleos internally uses keosd (command-line wallet). You need to import default private key by cleos wallet import 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3.
    – conr2d
    Nov 1, 2020 at 17:21
  • @Andrzej Welcome to the EOSIO stack exchange! If the answer from conr2d fixed your initial problem, it is helpful to other users if you mark the answer as "Accepted". If you have further problems with your wallet not being available, then please search the site for existing answer and then post a new question. Jan 1, 2021 at 14:10

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.