RPCService
trait RPCService
Trait RPCService to be used by RPCCommand to perform RPC calls, can be subclassed to use differents libraries : RPCHTTPService : using OkHttp3 RPCWebClientService : using Spring Framework WebClient
Value members
Abstract methods
@throws(scala.throws.$lessinit$greater$default$1[java.io.IOException])
Performs a synchronous JSON-RPC request
Performs a synchronous JSON-RPC request
- Type Params
- T
: Casper type item to be returned by the request
- Value Params
- request
: request to perform
- Returns
deserialized JSON-RPC response
@throws(scala.throws.$lessinit$greater$default$1[java.io.IOException])
Performs a asynchronous JSON-RPC request
Performs a asynchronous JSON-RPC request
- Type Params
- T
: Casper type item to be returned by the request
- Value Params
- request
: request to perform
- Returns
Future that will be completed when a result is returned or if the request has failed