Elixium Core v0.1.3 Elixium.UtxoStore View Source

Provides an interface for interacting with the UTXOs stored in level db

Link to this section Summary

Link to this section Functions

Link to this function add_utxo(utxo) View Source
add_utxo(map()) :: :ok | {:error, any()}

Add a utxo to leveldb, indexing it by its txoid

Link to this function find_by_address(public_key) View Source
find_by_address(String.t()) :: list()
Link to this function remove_utxo(txoid) View Source
remove_utxo(String.t()) :: :ok | {:error, any()}
Link to this function retrieve_all_utxos() View Source
retrieve_all_utxos() :: list()
Link to this function retrieve_utxo(txoid) View Source
retrieve_utxo(String.t()) :: map()

Retrieve a UTXO by its txoid

Link to this function update_with_transactions(transactions) View Source
update_with_transactions(list()) :: :ok | {:error, any()}