Crate bc_web

Source
Expand description

Main Web runner for the Blockchain Application.
Function main.
List, transact and reset the blockchain sample application.

Structsยง

AppState ๐Ÿ”’
Struct AppState.
SendCryptoRequest ๐Ÿ”’
Struct SendCryptoRequest.

Staticsยง

STATIC_DIR ๐Ÿ”’
Path definition to static file location.

Functionsยง

commit_mine_trxn ๐Ÿ”’
Save mined transaction to database.
get_pending_transactions ๐Ÿ”’
Get pending transactions.
get_previous_hash ๐Ÿ”’
Get previous hash.
get_wallet_addresses ๐Ÿ”’
Get the wallet address.
index ๐Ÿ”’
Index page for the server.
list_blockchain ๐Ÿ”’
List the blockchain.
main ๐Ÿ”’
Function main for the Web blockchain application.
mine_trxn ๐Ÿ”’
Mine a pending transaction.
reset_sample_data ๐Ÿ”’
Reset sample data to genesis block.
send_crypto ๐Ÿ”’
Send crypto one wallet to another.
serve_static_file ๐Ÿ”’
Function to server static files.
view_wallet ๐Ÿ”’
Display wallet details.
websocket_handler ๐Ÿ”’
Start web socket for mining transaction.