Class GetBlock
Inherited Members
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. |