Elixium Core v0.2.9 Elixium.Store.Ledger View Source
Provides an interface for interacting with the blockchain stored within LevelDB. This is where blocks are stored and fetched
Link to this section Summary
Functions
Add a block to leveldb, indexing it by its hash (this is the most likely piece of data to be unique)
Returns the block at a given index
Returns the number of blocks in the chain
Returns the most recent block on the chain
Given a block hash, return its contents
Return the whole chain from leveldb
Link to this section Functions
Add a block to leveldb, indexing it by its hash (this is the most likely piece of data to be unique)
Link to this function
block_at_height(height)
View Source
block_at_height(integer()) :: Elixium.Blockchain.Block
Returns the block at a given index
Returns the number of blocks in the chain
Returns the most recent block on the chain
Link to this function
retrieve_block(hash)
View Source
retrieve_block(String.t()) :: Elixium.Blockchain.Block
Given a block hash, return its contents
Return the whole chain from leveldb