C# Класс FactomAPI.Chain

Показать файл Открыть проект

Открытые методы

Метод Описание
CommitChain ( ChainType c, string name ) : byte[]

First method to add a chain to factom. Spends the entry credits, must wait 10seconds and call RevealChain() to finalize the commit.

GetAllChainEntries ( DataStructs chainHead ) : List

Returns all the entries in a Chain. Type of entry has timestamp and entryhash value

GetAllChainEntries ( byte chainHeadID ) : List

Returns all the entries in a Chain. Type of entry has timestamp and entryhash value

GetChainHead ( byte hash ) : DataStructs.ChainHeadData

Takes in an entry chain hash and returns Key MR of the first entry. Can be used to get all the entries

NewChain ( DataStructs entry ) : ChainType

Creates a new Chain

RevealChain ( ChainType c ) : bool

Second step in committing a new chain. Only run this if CommitChain was successful.

Описание методов

CommitChain() публичный статический Метод

First method to add a chain to factom. Spends the entry credits, must wait 10seconds and call RevealChain() to finalize the commit.
public static CommitChain ( ChainType c, string name ) : byte[]
c ChainType Chain to be added
name string Name of Entry Credit wallet
Результат byte[]

GetAllChainEntries() публичный статический Метод

Returns all the entries in a Chain. Type of entry has timestamp and entryhash value
public static GetAllChainEntries ( DataStructs chainHead ) : List
chainHead DataStructs ChainHeadData type
Результат List

GetAllChainEntries() публичный статический Метод

Returns all the entries in a Chain. Type of entry has timestamp and entryhash value
public static GetAllChainEntries ( byte chainHeadID ) : List
chainHeadID byte ChainID of chain
Результат List

GetChainHead() публичный статический Метод

Takes in an entry chain hash and returns Key MR of the first entry. Can be used to get all the entries
public static GetChainHead ( byte hash ) : DataStructs.ChainHeadData
hash byte ChainID of chain
Результат DataStructs.ChainHeadData

NewChain() публичный статический Метод

Creates a new Chain
public static NewChain ( DataStructs entry ) : ChainType
entry DataStructs First entry in chain
Результат ChainType

RevealChain() публичный статический Метод

Second step in committing a new chain. Only run this if CommitChain was successful.
public static RevealChain ( ChainType c ) : bool
c ChainType Chain to be added
Результат bool