Jeffrey ScholzFeb 293 minReading an account balance in Anchor: address(account).balance in SolanaReading an account balance in Anchor Rust To read the Solana balance of an address inside a Solana program, use the following code:...
Jeffrey ScholzFeb 285 minCost of storage, maximum storage size, and account resizing in SolanaWhen allocating storage space, the payer must pay a certain number of SOL per byte allocated. Solana calls this the “rent”. This name is...
Jeffrey ScholzFeb 274 minCreating “mappings” and “nested mapping” in SolanaIn the previous tutorials, the seeds=[] parameter was always empty. If we put data into it, it behaves like a key or keys in a Solidity...