Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 289
3 votes
Accepted

Why does "solana account" fail until after airdrop

Also is it possible to create a keypair and its associated account via the command line without having to request an airdrop? AFAIK the only way is to send some SOL to the account. … So the minimum you need to fund the account with to make a SOL account rent-exempt is somewhere between those two values. …
Callum M's user avatar
  • 3,775
2 votes
Accepted

The data that anchor' account stored surprise me, for a non-PDA account, it store all histor...

Notice how in that result each account has a different publicKey? … That's because your instruction is using #[account(init, ...) so it expects to initialise that account when it runs. …
Callum M's user avatar
  • 3,775
6 votes
Accepted

What is the data size of a wallet account?

A normal system account for eg your wallet is just 0 bytes, so the rent-exempt balance is calculated from that. For the Account struct you mentioned, it'd just be the size of that data field. … Everything except data has a fixed size, so the rent-exempt balance takes them into account and then just scales with data size. …
Callum M's user avatar
  • 3,775