Class RpcResult
Base class for all/most typed RPC responses
Inheritance
System.Object
RpcResult
Namespace: Casper.Network.SDK.JsonRpc.ResultTypes
Assembly: Casper.Network.SDK.dll
Syntax
public class RpcResult : object
Properties
ApiVersion
The RPC API version.
Declaration
public string ApiVersion { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
Load<T>(String)
Loads and deserializes an RPC response from a file.
Declaration
public static T Load<T>(string file)
where T : RpcResult
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | file |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T | Class, deriving from RpcResult, used for the deserialization |
Parse<T>(String)
Deserializes an RPC response from a string.
Declaration
public static T Parse<T>(string json)
where T : RpcResult
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | json |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T | Class, deriving from RpcResult, used for the deserialization |