Class StoreCommand
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
|
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
|
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
|
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
|
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
|
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
|
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