Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 770 Bytes

File metadata and controls

32 lines (23 loc) · 770 Bytes
description WIP...

Running the Client

To interact with the chain daemons, node.sh implements a client command, which is a wrapper to the ela-cli utility. You don't need to manually supply rpc username and password. when using node.sh, this will the users' time.

TODO: Put one, two or three simple command lines to call node features.

Next:

Connect chain daemons by ela-cli

~/node/node.sh ela client info getcurrentheight
1178878

The JSON RPC API is more complete and powerful than the client version.

Check with this equivalent command. Please note the request JSON must be surrounded with '.

~/node/node.sh ela jsonrpc '{"method":"getblockcount"}'
{
  "jsonrpc": "2.0",
  "result": 1178878,
  "id": null,
  "error": null
}