Method | Description | |
---|---|---|
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 ( |
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 ) : |
Takes in an entry chain hash and returns Key MR of the first entry. Can be used to get all the entries
|
|
NewChain ( |
Creates a new Chain
|
|
RevealChain ( ChainType c ) : bool |
Second step in committing a new chain. Only run this if CommitChain was successful.
|
public static CommitChain ( ChainType c, string name ) : byte[] | ||
c | ChainType | Chain to be added |
name | string | Name of Entry Credit wallet |
return | byte[] |
public static GetAllChainEntries ( |
||
chainHead | ChainHeadData type | |
return | List |
public static GetAllChainEntries ( byte chainHeadID ) : List |
||
chainHeadID | byte | ChainID of chain |
return | List |
public static GetChainHead ( byte hash ) : |
||
hash | byte | ChainID of chain |
return |
public static NewChain ( |
||
entry | First entry in chain | |
return | ChainType |
public static RevealChain ( ChainType c ) : bool | ||
c | ChainType | Chain to be added |
return | bool |