[][src]Function bitcoin_spv::btcspv::extract_output_at_index

pub fn extract_output_at_index(
    vout: &Vec<u8>,
    index: u8
) -> Result<Vec<u8>, SPVError>

Extracts the output at a given index in the TxIns vector.

Iterates over the vout. If you need to extract multiple, write a custom function.

Arguments

  • vout - The vout from which to extract
  • index - The 0-indexed location of the output to extract

Errors

  • Errors if VarInt represents a number larger than 253. Large VarInts are not supported.