# RPC / IPC
Some sort of interface is needed to communicate with a node. For this purpose, the client offers a set of RPC/IPC methods that can be called.
Definitions of Terms:
- RPC: Remote Procedure Call - is a particular type of communication, but can be on a single machine, or across a network between machines.
- IPC: Inter-Process Communication - is a general term for communication between different processes (which are usually on a single machine).
# Get started
- Start a full node as instructed here
- Navigate to the installation directory and execute one of the following commands
The file gvite.ipc
will only exist while the node is running and IPCEnabled
is set to true
in the node_config.json
file.
# Wallet Management
Please make sure to add the `wallet` module to the `PublicModules` list in the `node_config.json` before starting the node. Otherwise the following command will fail with: `The method wallet_createEntropyFile does not exist/is not available`.
Remember to remove said `wallet` module from `PublicModules` when the setup is completed, for safety purposes.
# Create Wallet
Execute the following command:
This will produce a similar result:
mnemonics
: Mnemonic phrase. Please keep it safeprimaryAddress
: Vite address at index 0 corresponding to the mnemonicfilePath
: The location of the keyStore file
# Recover Wallet from Mnemonic
Execute the following command:
This will result in the following output:
Now the keystore file "vite_981bca7a348de85bd431b842d4b6c17044335f71e5f3da59c0" has been regenerated under "~/.gvite/maindata/wallet/".
# Recover Mnemonic from Wallet
Command:
Result:
# Monitoring
# Query snapshot block height
Linux/Unix:
Windows:
The following result will be displayed:
1021388 is the current snapshot block height.