From 85d1edff70729644dfc822b30438c830fbcf22f9 Mon Sep 17 00:00:00 2001 From: Ondra Chaloupka Date: Mon, 18 Sep 2023 09:00:15 +0200 Subject: [PATCH] PDA max size is 10MB as of other accounts --- docs/core-concepts/accounts.md | 4 ++-- docs/references/programs.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/core-concepts/accounts.md b/docs/core-concepts/accounts.md index f180423d0..218399f59 100644 --- a/docs/core-concepts/accounts.md +++ b/docs/core-concepts/accounts.md @@ -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 ::: diff --git a/docs/references/programs.md b/docs/references/programs.md index fa84d6e07..1b8744d10 100644 --- a/docs/references/programs.md +++ b/docs/references/programs.md @@ -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.