Class RpcResult
Base class for all/most typed RPC responses
Inheritance
RpcResult
Inherited Members
Namespace: Casper.Network.SDK.JsonRpc.ResultTypes
Assembly: Casper.Network.SDK.dll
Syntax
public class RpcResult
Properties
| Edit this page View SourceApiVersion
The RPC API version.
Declaration
[JsonPropertyName("api_version")]
public string ApiVersion { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceLoad<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 |
|---|---|---|
| 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 |
|---|---|---|
| string | json |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T | Class, deriving from RpcResult, used for the deserialization |