Module utils

Source
Expand description

Utilities runner for the Blockchain Application.
Functions used by the main menu.
List, transact and reset the blockchain sample application.

Functionsยง

commit_mine_crypto
Commit the mined transaction to the database.
get_pending_transactions
Get pending transactions.
get_pending_txrn
Get pending transactions.
get_previous_hash
Retrieve the last hash in the chain.
get_transaction
Retrieve the tx_id from the existing map.
get_wallet_addresses
Get wallet data.
list_blockchain
List blockchain data.
load_blockchain
Load blockchain data.
mine_crypto
Mine a pending transaction.
mine_transactions ๐Ÿ”’
Mine Transactions from Mempool.
reset_sample_data
Reset Sample Data.
save_to_db ๐Ÿ”’
Save to mongoDB.
send_crypto
Crypto transaction from one wallet to another.
validate_txn ๐Ÿ”’
Validate the transaction details.
view_wallet
View wallet data.