Casper.Network.SDK
Show / Hide Table of Contents

Class RpcResult

Base class for all/most typed RPC responses

Inheritance
System.Object
RpcResult
GetAccountInfoResult
GetAuctionInfoResult
GetBalanceResult
GetBlockResult
GetBlockTransfersResult
GetDeployResult
GetDictionaryItemResult
GetEraInfoBySwitchBlockResult
GetEraSummaryResult
GetItemResult
GetNodePeersResult
GetNodeStatusResult
GetStateRootHashResult
GetValidatorChangesResult
PutDeployResult
QueryGlobalStateResult
SpeculativeExecutionResult
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

In This Article
  • Properties
    • ApiVersion
  • Methods
    • Load<T>(String)
    • Parse<T>(String)
Back to top Maintained by MAKE Technology LLC