Casper.Network.SDK
Show / Hide Table of Contents

Class RpcResult

Base class for all/most typed RPC responses

Inheritance
object
RpcResult
GetAccountInfoResult
GetAuctionInfoResult
GetBalanceResult
GetBlockResult
GetBlockTransfersResult
GetDeployResult
GetDeployResultCompat
GetDictionaryItemResult
GetEntityResult
GetEraInfoBySwitchBlockResult
GetEraSummaryResult
GetItemResult
GetNodePeersResult
GetNodeStatusResult
GetPackageResult
GetRewardResult
GetStateRootHashResult
GetTransactionResult
GetValidatorChangesResult
PutDeployResult
QueryBalanceDetailsResult
QueryBalanceResult
QueryGlobalStateResult
SpeculativeExecutionResult
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Casper.Network.SDK.JsonRpc.ResultTypes
Assembly: Casper.Network.SDK.dll
Syntax
public class RpcResult

Properties

| Edit this page View Source

ApiVersion

The RPC API version.

Declaration
[JsonPropertyName("api_version")]
public string ApiVersion { get; init; }
Property Value
Type Description
string

Methods

| Edit this page View Source

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
string file
Returns
Type Description
T
Type Parameters
Name Description
T

Class, deriving from RpcResult, used for the deserialization

| Edit this page View Source

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

  • Edit this page
  • View Source
In this article
Back to top Maintained by MAKE Technology LLC