gRPC

Kaspa

We've added the support for gRPC endpoints, starting with Kaspa. Here a simple step-by-step guide on how to test it.

  1. Get the proto files needed to define the gRPC service:

  2. Place them in a folder together, e.g. /proto

  3. Download and install a grpc client, like grpcurl

  4. Test the query as follows:

    1. grpcurl \

      -import-path ./proto \

      -proto messages.proto \

      -d '{"id":1, "getSystemInfoRequest":{}}' \

      -H "apiKey: {apiKey}" \

      grpc-mainnet-kaspa-fullnode.forbole.com:443 \

      protowire.RPC/MessageStream

    2. Response example:

      1. {"id":"0","getSystemInfoResponse":{"version":"v0.15.2","systemId":"9f8c1251188557a6201ee1177afc31bd12a3064c8ea14c6d2c8c8ae60f0e8e62","gitHash":"","coreNum":4,"totalMemory":"8326074368","fdLimit":65535,"proxySocketLimitPerCpuCore":0,"error":null}}

Last updated