Casper.Network.SDK
Show / Hide Table of Contents

Class RpcMethod

Wrapper class for an RPC call method that can be serialized to JSON.

Inheritance
object
RpcMethod
GetAccountInfo
GetAuctionInfo
GetAuctionInfoV2
GetBalance
GetBlock
GetBlockTransfers
GetChainspec
GetDelegatorReward
GetDeploy
GetDictionaryItem
GetDictionaryItemByAccount
GetDictionaryItemByContract
GetDictionaryItemByURef
GetEntity
GetEraInfoBySwitchBlock
GetEraSummary
GetItem
GetNodePeers
GetNodeStatus
GetPackage
GetRpcSchema
GetStateRootHash
GetTransaction
GetValidatorChanges
GetValidatorReward
PutDeploy
PutTransaction
QueryBalance
QueryBalanceDetails
QueryGlobalState
SpeculativeExecution
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 abstract class RpcMethod

Constructors

| Edit this page View Source

RpcMethod(string)

Declaration
public RpcMethod(string method)
Parameters
Type Name Description
string method
| Edit this page View Source

RpcMethod(string, string)

Declaration
public RpcMethod(string method, string blockHash)
Parameters
Type Name Description
string method
string blockHash
| Edit this page View Source

RpcMethod(string, ulong)

Declaration
public RpcMethod(string method, ulong blockHeight)
Parameters
Type Name Description
string method
ulong blockHeight

Properties

| Edit this page View Source

Id

Id of the RPC request that can be correlated with the equivalent Id in the RPC response

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

JsonRpc

Version of the RPC protocol in use

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

Method

Method name.

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

Parameters

List of parameters that are included in the RPC Request

Declaration
[JsonPropertyName("params")]
public Dictionary<string, object> Parameters { get; protected set; }
Property Value
Type Description
Dictionary<string, object>
| Edit this page View Source

SerializerOptions

Declaration
public static JsonSerializerOptions SerializerOptions { get; }
Property Value
Type Description
JsonSerializerOptions

Methods

| Edit this page View Source

Serialize()

Converts an RpcMethod derived object a JSON string that can be sent to the network

Declaration
public string Serialize()
Returns
Type Description
string
  • Edit this page
  • View Source
In this article
Back to top Maintained by MAKE Technology LLC