C# Class FactomAPI.Entry

显示文件 Open project: CryptidID/FactomDotNet

Public Methods

Method Description
CommitEntry ( DataStructs entry, string name ) : byte[]

Commits an entry to the Factom blockchain. Must wait 10 seconds if succeeds then call RevealEntry

EntryCost ( DataStructs entry ) : sbyte

Caculates the cost of an entry

GetEntryBlockByKeyMR ( DataStructs chainHead ) : DataStructs.EntryBlockData

Returns an EntryBlock

GetEntryBlockByKeyMR ( byte keyMR ) : DataStructs.EntryBlockData

Returns an EntryBlock

GetEntryData ( DataStructs entry ) : DataStructs.EntryData

Returns the data of an entry.

GetEntryData ( byte entryHash ) : DataStructs.EntryData

Returns the data of an entry.

NewEntry ( byte content, byte extIds, byte chainId ) : DataStructs.EntryData

Constructs a new EntryData object

RevealEntry ( DataStructs entry ) : bool

Second and final step in adding an entry to a chain on the factom blockchain

Method Details

CommitEntry() public static method

Commits an entry to the Factom blockchain. Must wait 10 seconds if succeeds then call RevealEntry
public static CommitEntry ( DataStructs entry, string name ) : byte[]
entry DataStructs Entry to be committed
name string Name of entry credit wallet
return byte[]

EntryCost() public static method

Caculates the cost of an entry
public static EntryCost ( DataStructs entry ) : sbyte
entry DataStructs
return sbyte

GetEntryBlockByKeyMR() public static method

Returns an EntryBlock
public static GetEntryBlockByKeyMR ( DataStructs chainHead ) : DataStructs.EntryBlockData
chainHead DataStructs
return DataStructs.EntryBlockData

GetEntryBlockByKeyMR() public static method

Returns an EntryBlock
public static GetEntryBlockByKeyMR ( byte keyMR ) : DataStructs.EntryBlockData
keyMR byte
return DataStructs.EntryBlockData

GetEntryData() public static method

Returns the data of an entry.
public static GetEntryData ( DataStructs entry ) : DataStructs.EntryData
entry DataStructs
return DataStructs.EntryData

GetEntryData() public static method

Returns the data of an entry.
public static GetEntryData ( byte entryHash ) : DataStructs.EntryData
entryHash byte Entryhash of entry
return DataStructs.EntryData

NewEntry() public static method

Constructs a new EntryData object
public static NewEntry ( byte content, byte extIds, byte chainId ) : DataStructs.EntryData
content byte Content of Entry (message pack)
extIds byte Unique Ids used for first entry of chain to construct a unique chain ID
chainId byte ChainID of chain
return DataStructs.EntryData

RevealEntry() public static method

Second and final step in adding an entry to a chain on the factom blockchain
public static RevealEntry ( DataStructs entry ) : bool
entry DataStructs Entry to be added
return bool