Information of the network (peers, channel and etc...) #597
Replies: 1 comment
-
To perform business operations (evaluate and submit transactions, receive events), identifying all the network nodes is not necessary as the peer Gateway service deals with all this on the client's behalf. Therefore the Fabric Gateway client API does not provide this (or any other administrative) capability. Information on the (active) network peers can be obtained using service discovery. This can be accessed using a gRPC service exposed by peers. The Discovery service can be invoked using published language bindings (for Go, Node and Java) generated from the Fabric protocol buffer messages. You would need to send a PeerMembershipQuery to the discovery service. The legacy Fabric SDKs typically do use service discovery internally to build a client-side model of all the network nodes. You could use those legacy SDKs to obtain the network peers but it is a very heavyweight hammer to use to access the discovery service information that you could get with a single gRPC service invocation using the fabric-protos packages mentioned above. |
Beta Was this translation helpful? Give feedback.
-
how is it possible to get a list of the peers or informations of the network, which applications have these options
is it possible?
Beta Was this translation helpful? Give feedback.
All reactions