This forum is a read-only archive. Posting, replying and signing in are disabled.

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

javier0rosas

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?

✔ Solved by fabrice in post #2
fabrice

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).

✔ Solution
javier0rosas

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

fabrice

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