Function encode_tx
Source pub fn encode_tx(tx: &Transaction) -> Vec<u8> ⓘ
Expand description
Encodes a transaction into a byte vector using GTV format
§Arguments
tx - Reference to the Transaction to be encoded
§Returns
Vec<u8> - Encoded transaction as a byte vector