Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDA max size is 10MB as of other accounts #553

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/core-concepts/accounts.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ building block for developing on Solana.
- Accounts are used to store data
- Each account has a unique address
- Accounts have a max size of 10MB (10 Mega Bytes)
- PDA accounts have a max size of 10KB (10 Kilo Bytes)
- PDA accounts have an initial max size of 10KB (10 Kilo Bytes)
- Accounts size are fixed at creation time, but can be adjusted using [realloc](https://solanacookbook.com/references/programs.html#how-to-change-account-size) up to 10MB
- PDA accounts can be used to sign on behalf of a program
- Accounts size are fixed at creation time, but can be adjusted using [realloc](https://solanacookbook.com/references/programs.html#how-to-change-account-size)
- Account data storage is paid with rent
- Default account owner is the System Program
:::
Expand Down
4 changes: 2 additions & 2 deletions docs/references/programs.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ The client side instruction, now only needs to pass the state and payer accounts

## How to change account size

You can change a program owned account's size with the use
of `realloc`. `realloc` can resize an account up to 10KB.
You can change an account's size with the use of `realloc`.
`realloc` can resize an account in steps of 10KB up to 10MB of max size.
When you use `realloc` to increase the size of an account,
you must transfer lamports in order to keep that account
rent-exempt.
Expand Down