1

When I am connected to rpcalpha.tzbeta.net through tezos-client -l -A rpcalpha.tzbeta.net -S -P 443 config update I can succesfully call tezos-client activate account alice with <path_to_downloaded_json>.

But when I connect to my own node an run the same command, I get:

% tezos-client activate account alice with <path_to_downloaded_json>                                                                                                                     ~ tezos-node
Error:
  Unrecognized command.
  Try using the man command to get more information.

Usage:

My '~/.tezos-client/config' content when connected to my own node is

{
    "base_dir": "/home/troels/.tezos-client",
    "node_addr": "127.0.0.1",
    "node_port": 9999
}
5
  • Can you check that your node is synchronized? Try running tezos-client get timestamp.
    – arvidj
    Jul 16, 2020 at 15:46
  • I can confirm that my own node is not syncronized. Does that make a difference? Jul 16, 2020 at 15:46
  • 1
    Yes. Some of the commands in tezos-client are defined by the protocol. If your node is not synchronized, then it is probably running a bare bones protocol, that lack even basic commands like get balance for. Are you just testing the node, or do you want to get the balance for a real account on the chain?
    – arvidj
    Jul 16, 2020 at 15:50
  • 1
    If the latter, you need to synchronize to get the full state of the block chain and the latest protocol. If the former, you can check out sandbox mode: tezos.gitlab.io/user/sandbox.html
    – arvidj
    Jul 16, 2020 at 15:51
  • For now I am just running a node on the Carthage test net. But I would like a real (and syncronized) node and real account up and running. Jul 16, 2020 at 15:52

1 Answer 1

1

Yes, a subset of the RPCs exposed by the node is provided by the protocol. Thus, depending on the node that you connect to and the protocol that it is running, some RPCs will be available or not. The documentation gives a note on this:

Beware that the commands available on the client depend on the specific protocol run by the node. For instance, get timestamp isn’t available when the node runs the genesis protocol, which may happen for a few minutes when launching a node for the first time.

Here it talks about tezos-client commands, but these are often just wrappers around calls to the node RPCs, a subset of which are defined by the protocol.

2
  • So to be absolutely clear: The set of available RPC calls will change as the node is syncing and its local version of the blockchain gets longer? Without further configurations from the node administrator? Jul 16, 2020 at 18:01
  • 1
    Yes, that is correct.
    – arvidj
    Jul 17, 2020 at 9:17

Your Answer

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

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