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
RpcResponse<TRpcResult>
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
|
Edit this page
View Source
Id
Declaration
[JsonPropertyName("id")]
public uint Id { get; init; }
Property Value
|
Edit this page
View Source
JsonRpc
Declaration
[JsonPropertyName("jsonrpc")]
public string JsonRpc { get; init; }
Property Value
|
Edit this page
View Source
Result
Declaration
[JsonPropertyName("result")]
public JsonElement Result { get; init; }
Property Value
Methods
|
Edit this page
View Source
Parse()
Declaration
public TRpcResult Parse()
Returns
| Type |
Description |
| TRpcResult |
|
Extension Methods