Function send_crypto

Source
pub async fn send_crypto(
    amount: f64,
    fee: f64,
    blockchain: &mut Blockchain,
    sender_wallet: &mut Wallet,
    receiver_wallet: &mut Wallet,
    blocks_collection: Collection<Document>,
    wallets_collection: Collection<Document>,
    blockchain_collection: Collection<Document>,
) -> Result<String, Box<dyn Error>>
Expand description

Crypto transaction from one wallet to another.