2

According to the Solana documentation the minimum balance/amount to be send to new SOL account can be calculated using getMinimumBalanceForRentExemption()

getMinimumBalanceForRentExemption() takes a dataLength parameter. What should dataLength be for a new account?

There is an ACCOUNT_SIZE constant for SPL token but my question is for a native SOL account without additional tokens.

1 Answer 1

4

If it's just a system account that stores no data, you can simply create it with 0 length.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.