pub fn attached_deposit() -> NearToken
Expand description
The balance that was attached to the call that will be immediately deposited before the contract execution starts
ยงExamples
use near_sdk::env::attached_deposit;
use near_sdk::NearToken;
assert_eq!(attached_deposit(), NearToken::from_yoctonear(0));