Casper.Network.SDK
Show / Hide Table of Contents

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>
Namespace: Casper.Network.SDK.JsonRpc
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
Type Description
RpcError

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

RpcResponseExtensions.GetDeployHash<TRpcResult>(RpcResponse<TRpcResult>)
In This Article
Back to top Maintained by MAKE Technology LLC