Show / Hide Table of Contents

Class StoreCommand

Inheritance
Object
StoreCommand
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 StoreCommand

Methods

| Improve this Doc View Source

BlockByHash(String, String)

Declaration
[Command(Description = "Query a block by hash.")]
public void BlockByHash([Argument("STORE", Description = "The URI denotes the type and path of concrete class for IStore.<store-type>://<store-path> (e.g., rocksdb+file:///path/to/store)")] string home, [Argument("BLOCK-HASH", Description = "block hash")] string blockHash)
Parameters
Type Name Description
String home
String blockHash
| Improve this Doc View Source

BlockByIndex(String, Int32)

Declaration
[Command(Description = "Query a block by index.")]
public void BlockByIndex([Argument("STORE", Description = "The URI denotes the type and path of concrete class for IStore.<store-type>://<store-path> (e.g., rocksdb+file:///path/to/store)")] string home, [Argument("BLOCK-INDEX", Description = "block index")] int blockIndex)
Parameters
Type Name Description
String home
Int32 blockIndex
| Improve this Doc View Source

BlockHashesByTxId(String, String)

Declaration
[Command(Description = "Query block hashes by transaction id.")]
public void BlockHashesByTxId([Argument("STORE", Description = "The URI denotes the type and path of concrete class for IStore.<store-type>://<store-path> (e.g., rocksdb+file:///path/to/store)")] string home, [Argument("TX-ID", Description = "tx id")] string strTxId)
Parameters
Type Name Description
String home
String strTxId
| Improve this Doc View Source

BlocksByTxId(String, String)

Declaration
[Command(Description = "Query a list of blocks by transaction id.")]
public void BlocksByTxId([Argument("STORE", Description = "The URI denotes the type and path of concrete class for IStore.<store-type>://<store-path> (e.g., rocksdb+file:///path/to/store)")] string home, [Argument("TX-ID", Description = "tx id")] string strTxId)
Parameters
Type Name Description
String home
String strTxId
| Improve this Doc View Source

BuildIndexTxBlock(String, Int32, Int32)

Declaration
[Command(Description = "Build an index for transaction id and block hash.")]
public void BuildIndexTxBlock([Argument("STORE", Description = "The URI denotes the type and path of concrete class for IStore.<store-type>://<store-path> (e.g., rocksdb+file:///path/to/store)")] string home, [Argument("OFFSET", Description = "block index")] int offset, [Argument("LIMIT", Description = "block index")] int limit)
Parameters
Type Name Description
String home
Int32 offset
Int32 limit
| Improve this Doc View Source

ChainIds(String, Boolean)

Declaration
[Command(Description = "List all chain IDs.")]
public void ChainIds([Argument("STORE", Description = "The URI denotes the type and path of concrete class for IStore.<store-type>://<store-path> (e.g., rocksdb+file:///path/to/store)")] string storeUri, [Option("hash", null, Description = "Show the hash of the chain tip.")] bool showHash)
Parameters
Type Name Description
String storeUri
Boolean showHash
| Improve this Doc View Source

MigrateIndex(String)

Declaration
[Command]
public void MigrateIndex(string storePath)
Parameters
Type Name Description
String storePath
| Improve this Doc View Source

TxById(String, String)

Declaration
[Command(Description = "Query a transaction by tx id.")]
public void TxById([Argument("STORE", Description = "The URI denotes the type and path of concrete class for IStore.<store-type>://<store-path> (e.g., rocksdb+file:///path/to/store)")] string home, [Argument("TX-ID", Description = "tx id")] string strTxId)
Parameters
Type Name Description
String home
String strTxId
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium