In short
Every account holds a small refundable deposit for the space it takes up. Opening a USDC account for a new customer costs about 0.0015 SOL, which comes back if the account is closed.You’ve used this in: Payments Step 4 Pay-per-call Step 4 Tokenized asset Step 3 Trade settlement Step 3
What the deposit is
Every accountAccountsEverything on Solana (balances, tokens, programs, app data) lives in accounts: records at an address, each with an owner that is allowed to change it.Learn more (Accounts: Everything on Solana (balances, tokens, programs, app data) lives in accounts: records at an address, each with an owner that is allowed to change it.) must hold a minimum balance of lamports (1 SOL = 1,000,000,000 lamports) to keep its data stored on the network. The amount depends only on the account’s size. It is a deposit, not a fee: nothing is deducted over time, and the full balance comes back when the account is closed. The runtime and RPC methods still call this the rent-exempt minimum. Ongoing rent collection is disabled, and therent_epoch field that tracked it is
deprecated.
How much it costs
The minimum balance is:| Account | Data size | Minimum balance |
|---|---|---|
| Wallet (system account, no data) | 0 bytes | 650,240 lamports (0.00065024 SOL) |
| Token account (original Token program) | 165 bytes | 1,488,440 lamports (0.00148844 SOL) |
| Account with 1,500 bytes of data | 1,500 bytes | 8,270,240 lamports (0.00827024 SOL) |
getMinimumBalanceForRentExemption,
which returns the current value for a given size:
Kit
Output
Local test networks such as Surfpool and
solana-test-validator still use the
older rate of 6,960 lamports per byte, so the output above (11,330,880
lamports for 1,500 bytes) is higher than what mainnet returns.Who pays, and who gets it back
The account that creates a new account funds its deposit. In practice:- Payments. A customer who has never held USDC has no USDC token accountToken accountsWallets don't hold tokens directly. Each token (USDC, or your own asset) gets a small account owned by the wallet, and transfers move between these accounts.Learn more (Token accounts: Wallets don’t hold tokens directly. Each token (USDC, or your own asset) gets a small account owned by the wallet, and transfers move between these accounts.). Whoever sends them their first USDC usually creates it and pays about 0.0015 SOL at the current rate. Your app can pay this for its users, together with their network fees, through fee sponsorship.
- Assets. Token-2022 associated token accounts are slightly larger (170
bytes, 1,513,840 lamports at 5,080 lamports per byte) because they carry the
ImmutableOwnerextension. Each further extension adds space, and so a larger deposit. - Programs. A program pays for each account it creates, from the payer account passed into the instruction.
Related
- Rent state transitions: the rules the runtime enforces when an account’s balance changes. New accounts must always hold at least the minimum balance.