Show / Hide Table of Contents

Class BlockCommand

Inheritance
Object
BlockCommand
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Libplanet.Extensions.Cocona.Commands
Assembly: Libplanet.Extensions.Cocona.dll
Syntax
public class BlockCommand

Methods

| Improve this Doc View Source

Analyze(String, String)

Declaration
[Command(Description = "Analyze the given block.")]
public void Analyze([Argument(Description = "The file path of the block to analyze.  If a hyphen (-) is given it reads from the standard input (if you want to read just a file named \"-\", use \"./-\" instead).")] string file, [Option('o', Description = "The file path to write the analysis result to.  If a hyphen (-) is given it writes to the standard output (if you want to write just a file named \"-\", use \"./-\" instead).  If not given, it writes to the standard output.")] string output = "-")
Parameters
Type Name Description
String file
String output
| Improve this Doc View Source

GenerateGenesis(Guid, PassphraseParameters, String, String[], BlockPolicyParams, BlockCommand.OutputFormat)

Declaration
[Command(Description = "Generate a genesis block.")]
public void GenerateGenesis([Argument(Name = "KEY-ID", Description = "A private key to use for signing.")] Guid keyId, PassphraseParameters passphrase, [Argument(Name = "FILE", Description = "File to write the genesis block to.  Use `-` for stdout (you can still refer to a file named \"-\" by \"./-\").")] string file, [Option('v', Description = "A public key to use for validating.")] string[] validatorKey, BlockPolicyParams blockPolicyParams, [Option('f', Description = "Output format.")] BlockCommand.OutputFormat format = BlockCommand.OutputFormat.Bencodex)
Parameters
Type Name Description
Guid keyId
PassphraseParameters passphrase
String file
String[] validatorKey
BlockPolicyParams blockPolicyParams
BlockCommand.OutputFormat format
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium