Function account_balance

Source
pub fn account_balance() -> NearToken
Expand description

The balance attached to the given account. This includes the attached_deposit that was attached to the transaction

ยงExamples

use near_sdk::env::account_balance;
use near_sdk::NearToken;

assert_eq!(account_balance(), NearToken::from_near(100));