Class RpcMethod
Wrapper class for an RPC call method that can be serialized to JSON.
Inheritance
System.Object
RpcMethod
Assembly: Casper.Network.SDK.dll
Syntax
public abstract class RpcMethod : object
Constructors
RpcMethod(String)
Declaration
public RpcMethod(string method)
Parameters
Type |
Name |
Description |
System.String |
method |
|
RpcMethod(String, Int32)
Declaration
public RpcMethod(string method, int blockHeight)
Parameters
Type |
Name |
Description |
System.String |
method |
|
System.Int32 |
blockHeight |
|
RpcMethod(String, String)
Declaration
public RpcMethod(string method, string blockHash)
Parameters
Type |
Name |
Description |
System.String |
method |
|
System.String |
blockHash |
|
Properties
Id
Id of the RPC request that can be correlated with the equivalent Id in the RPC response
Declaration
public uint Id { get; set; }
Property Value
Type |
Description |
System.UInt32 |
|
JsonRpc
Version of the RPC protocol in use
Declaration
public string JsonRpc { get; }
Property Value
Type |
Description |
System.String |
|
Method
Declaration
public string Method { get; }
Property Value
Type |
Description |
System.String |
|
Parameters
List of parameters that are included in the RPC Request
Declaration
public Dictionary<string, object> Parameters { get; protected set; }
Property Value
Type |
Description |
Dictionary<System.String, System.Object> |
|
SerializerOptions
Declaration
public static JsonSerializerOptions SerializerOptions { get; }
Property Value
Type |
Description |
JsonSerializerOptions |
|
Methods
Serialize()
Converts an RpcMethod derived object a JSON string that can be sent to the network
Declaration
public string Serialize()
Returns
Type |
Description |
System.String |
|