Function input
Source pub fn input() -> Option<Vec<u8>>
Expand description
The input to the contract call serialized as bytes. If input is not provided returns None
.
ยงExamples
use near_sdk::env::input;
assert_eq!(input(), Some(Vec::new()));
See an example here here