Class RpcResponse<TRpcResult>
Wrapper class for an RPC Response. For a successful response the Result property
contains the returned data as a JSON object. If an error occurs
Inheritance
System.Object
RpcResponse<TRpcResult>
Assembly: Casper.Network.SDK.dll
Syntax
public class RpcResponse<TRpcResult> : object
Type Parameters
Name |
Description |
TRpcResult |
|
Properties
Error
Declaration
public RpcError Error { get; set; }
Property Value
Id
Declaration
public uint Id { get; set; }
Property Value
Type |
Description |
System.UInt32 |
|
JsonRpc
Declaration
public string JsonRpc { get; set; }
Property Value
Type |
Description |
System.String |
|
Result
Declaration
public JsonElement Result { get; set; }
Property Value
Type |
Description |
JsonElement |
|
Methods
Parse()
Declaration
public TRpcResult Parse()
Returns
Type |
Description |
TRpcResult |
|
Extension Methods