pub fn input_message_nonce(index: u64) -> Option<b256> 
Expand description

Gets the nonce of input message at index.

Arguments

  • index: [u64] - The index of the input to check.

Returns

  • [b256] - The nonce of the input message at index, if the input’s type is Input::Message.

Examples

use std::inputs::input_message_nonce;

fn foo() {
    let input_message_nonce = input_message_nonce(0);
    assert(input_message_nonce != b256::zero());
}