Skip to main content

read_txout

Function read_txout 

Source
pub fn read_txout<R: Read>(reader: R) -> Result<TxOut<Zatoshis>>
Expand description

Reads a transparent output: an 8-byte little-endian value followed by a scriptPubKey.

Returns io::ErrorKind::InvalidData if the value is negative or exceeds the maximum money supply. Returns an error if the reader fails, the input is truncated, or the scriptPubKey has an invalid length prefix.