com.casper.sdk.rpc

Type members

Classlikes

enum Method(val name: String)

Enum with Capser netowrk RPC available methods

Enum with Capser netowrk RPC available methods

class RPCCommand(rpcService: RPCService)

RPC client class

RPC client class

case class RPCError(code: Int, message: String, data: Option[String])

Class that will be used to serialize/deserialize RPC Errors

Class that will be used to serialize/deserialize RPC Errors

Value parameters:
code

: RPC Error code

data

: Full stack RPC error message

message

: RPC Error short message

Companion:
object
object RPCError
Companion:
class
case class RPCRequest(id: Long, method: String, params: Seq[Json], jsonrpc: String)

RPC Request class, used to serialize/deserilaize RPC request payloads

RPC Request class, used to serialize/deserilaize RPC request payloads

Value parameters:
jsonrpc

jsonrpc version

method

RPC method

params

params of the call

Companion:
object
object RPCRequest
Companion:
class
case class RPCResult[T](jsonrpc: String, id: Option[Long], result: Option[T], error: Option[RPCError])

Generic RPC Response Class, used to serialize/deserialize RPC Response payloads

Generic RPC Response Class, used to serialize/deserialize RPC Response payloads

Type parameters:
T

Casper domaine type to be returned by the RPC request

Companion:
object
object RPCResult
Companion:
class

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

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