Class GetBlock
Inherited Members
Namespace: Casper.Network.SDK.JsonRpc
Assembly: Casper.Network.SDK.dll
Syntax
public class GetBlock : RpcMethod
Constructors
| Edit this page View SourceGetBlock(string)
Retrieves a Block from the network by its hash.
Declaration
public GetBlock(string blockHash)
Parameters
| Type | Name | Description |
|---|---|---|
| string | blockHash | Hash of the block to retrieve. Null for the most recent block. |
GetBlock(ulong)
Retrieves a Block from the network by its height number.
Declaration
public GetBlock(ulong height)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | height | Height of the block to retrieve. |