Function std::inputs::input_amount
pub fn input_amount(index: u64) -> Option<u64> Expand description
Gets the amount field from the input at index.
Arguments
index: [u64] - The index of the input to check.
Returns
- [Option] - The amount of the input at
index, if the input’s type isInput::CoinorInput::Message, elseNone.
Examples
use std::inputs::input_amount;
fn foo() {
let input_amount = input_amount(0);
assert(input_amount.unwrap() == 100);
}