# gRPC Server
gRPC Server is a node extension that allows running gRPC services on a node. gRPC interaface can be used to run apps on your own node.
gRPC services provide information about:
- accounts
- blockchain
- blocks
- tokens
- transactions
# Client Generation
The clients generated from .proto files are used to connect to gRPC services.
Examples of usage of gRPC clients generated from .proto files:
- Connecting to transactions service in Java
- Retrieving blocks in C#
# gRPC Server Installation
The gRPC Server extension can be installed on the node by two methods: using Deb package or ZIP file.
# Installation via Deb Package
Download deb package from the Releases page (Assets section) on Github. For the Mainnet it is grpc-server_{version number}_all.deb file, for test network it is grpc-server-testnet_{version number}_all.deb.
Install the package using the command:
sudo dpkg -i grpc-server_{version number}_all.deb
Add the following string to the configuration file:
waves.extensions += com.wavesplatform.api.grpc.GRPCServerExtension
For the main network, the configuration file is located at /etc/waves/waves.conf
, for the test network at /etc/waves-testnet/waves.conf
.
- Restart the node.
If the node is running in the main network, run the command:
sudo systemctl restart waves
If the node is running in the test network, run the command:
sudo systemctl restart waves-testnet
# Installation via ZIP File
Download grpc-server-{version number}.zip file from Releases page (Assets section) on Github.
Unpack the archive to the directory containing node's JAR-file.
Create a new configuration file or open the existing one and add to it the following string:
waves.extensions += com.wavesplatform.api.grpc.GRPCServerExtension
Run command:
java -cp 'waves-all-1.0.0.jar:grpc-server-1.0.0/lib/*' com.wavesplatform.Application {configuration file name}.conf