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
object
RpcResponse<TRpcResult>
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
Assembly: Casper.Network.SDK.dll
Syntax
public class RpcResponse<TRpcResult>
Type Parameters
Name Description
TRpcResult

Properties

| Edit this page View Source

Error

Declaration
[JsonPropertyName("error")]
public RpcError Error { get; init; }
Property Value
Type Description
RpcError
| Edit this page View Source

Id

Declaration
[JsonPropertyName("id")]
public uint Id { get; init; }
Property Value
Type Description
uint
| Edit this page View Source

JsonRpc

Declaration
[JsonPropertyName("jsonrpc")]
public string JsonRpc { get; init; }
Property Value
Type Description
string
| Edit this page View Source

Result

Declaration
[JsonPropertyName("result")]
public JsonElement Result { get; init; }
Property Value
Type Description
JsonElement

Methods

| Edit this page View Source

Parse()

Declaration
public TRpcResult Parse()
Returns
Type Description
TRpcResult

Extension Methods

RpcResponseExtensions.GetDeployHash<TRpcResult>(RpcResponse<TRpcResult>)
RpcResponseExtensions.GetTransactionHash<TRpcResult>(RpcResponse<TRpcResult>)
  • Edit this page
  • View Source
In this article
Back to top Maintained by MAKE Technology LLC