Function input_utxo_hash

Source
pub fn input_utxo_hash(a: u32) -> Option<u256>
Expand description

Return the SHA256 hash of the following:

  • The serialization of the input UTXO’s asset and amount fields.
  • The SHA256 hash of the input UTXO’s scriptPubKey.

Return None if the input does not exist.

§Cost

1996 mWU (milli weight units)