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.
Get the proto files needed to define the gRPC service:
Place them in a folder together, e.g.
/proto
Download and install a grpc client, like grpcurl
Test the query as follows:
grpcurl \
-import-path ./proto \
-proto messages.proto \
-d '{"id":1, "getSystemInfoRequest":{}}' \
-H "apiKey: {apiKey}" \
grpc-mainnet-kaspa-fullnode.forbole.com:443 \
protowire.RPC/MessageStream
Response example:
{"id":"0","getSystemInfoResponse":{"version":"v0.15.2","systemId":"9f8c1251188557a6201ee1177afc31bd12a3064c8ea14c6d2c8c8ae60f0e8e62","gitHash":"","coreNum":4,"totalMemory":"8326074368","fdLimit":65535,"proxySocketLimitPerCpuCore":0,"error":null}}
Last updated