Casper.Network.SDK
Show / Hide Table of Contents

Class GetBlock

Inheritance
System.Object
RpcMethod
GetBlock
Inherited Members
RpcMethod.JsonRpc
RpcMethod.Id
RpcMethod.Method
RpcMethod.Parameters
RpcMethod.SerializerOptions
RpcMethod.Serialize()
Namespace: Casper.Network.SDK.JsonRpc
Assembly: Casper.Network.SDK.dll
Syntax
public class GetBlock : RpcMethod

Constructors

GetBlock(Int32)

Retrieves a Block from the network by its height number.

Declaration
public GetBlock(int height)
Parameters
Type Name Description
System.Int32 height

Height of the block to retrieve.

GetBlock(String)

Retrieves a Block from the network by its hash.

Declaration
public GetBlock(string blockHash)
Parameters
Type Name Description
System.String blockHash

Hash of the block to retrieve. Null for the most recent block.

In This Article
Back to top Maintained by MAKE Technology LLC