How many accounts can have local storage on a smart contract?

In the developer portal it says that a limit of 64 key-value pairs can be in global storage and 16 key-value pairs can have local storage. Does this mean a total of 16 accounts can have local storage in the smart contract?

1 Like

There is no limit on the number of accounts that can opt in to a smart contract (i.e., accounts in which the smart contract can have local storage).
All the accounts in the blockchain can opt in to your smart contract.

Each opt in account can store up to 16 key-value pairs (per smart contract it opted in).

1 Like

Thank you! What about global storage? How many key-value pairs can a smart contract have in global storage?

Global storage can contain up to 64 key-value in total (per application).

1 Like