Function storage_usage

Source
pub fn storage_usage() -> StorageUsage
Expand description

Current total storage usage of this smart contract that this account would be paying for.

ยงExamples

use near_sdk::env::storage_usage;

assert_eq!(storage_usage(), 307200);