# Packages
Package pb contains proto3 definitions for user API and the corresponding generated code for grpc server and client.
# Functions
ListenAndServePayChAPI starts a payment channel API server that listens for incoming grpc requests at the specified address and serves those requests using the node API instance.
ToGrpcBalInfo is a helper function to convert BalInfo struct defined in perun-node to BalInfo struct defined in grpc package.
ToGrpcPayment is a helper function to convert Payment struct defined in perun-node package to Payment struct defined in gprc package.
ToGrpcPayments is a helper function to convert slice of Payment struct defined in perun-node package to slice of Payment struct defined in grpc package.
# Variables
ToGrpcChUpdateType is a helper var that maps enums from ChUpdateType type defined in perun-node to ChUpdateType type defined in grpc package.