nclient / NClient

:dizzy: NClient is an automatic type-safe .Net HTTP client that allows you to call web service API methods using annotated interfaces or controllers without boilerplate code.
Apache License 2.0
44 stars 11 forks source link

RPC protocol support #357

Open smolchanovsky opened 3 years ago

smolchanovsky commented 3 years ago

I would like to use the RPC protocol over HTTP or sockets. For example, to interact with the Ethereum API or Random.org. There are various specifications of the RPC protocol (JSON RPC, XML RPC, GRPC, etc.), so the logic of making an RPC request should be general, not depend on the serialization format and transport. Before implementation, the design should be discussed.

As an example for implementation, you can use the NClient.Providers.Api.Rest package. JSON RPC spec: https://www.jsonrpc.org/specification XML RPC spec: http://xmlrpc.com/spec.md GRPC spec: https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md

Kingmidas74 commented 2 years ago

I suggest implement this feature to the next release with first priority ;-)