The technical content top engineers rely on to level up.
3 min read
Cross Program Invocation In Anchor Cross Program Invocation (CPI) is Solana's terminology for a program calling the public function of another program. We've already done CPI before when we sent a...
6 min read
Cost of storage, maximum storage size, and account resizing in Solana !Solana account rent When allocating storage space, the payer must pay a certain number of SOL per byte allocated. Solana calls...
5 min read
Solana counter tutorial: reading and writing data to accounts !Writing Data to accounts in Anchor Solana In our previous tutorial, we discussed how to initialize an account so that we could persist...
10 min read
Initializing Accounts in Solana and Anchor !Storage in Solana Up until this point, none of our tutorials have used "storage variables" or stored anything permanent. In Solidity and Ethereum, a more...
3 min read
Multicall in Solana: Batching Transactions and Transaction Size Limit !Hero image showing Solona transaction batch and transaction size limit Solana has multicall built in In Ethereum, we use the...
5 min read
Read account data with Solana web3 js and Anchor !Read Account Data This tutorial shows how to read account data directly from the Solana web3 Javascript client so that a web app could read it on the...
4 min read
Creating "mappings" and "nested mapping" in Solana !"Mappings" and "Nested Mappings" in Solana In the previous tutorials, the parameter was always empty. If we put data into it, it behaves like a key...
4 min read
#[derive(Accounts)] in Anchor: different kinds of accounts in Solana Anchor is an attribute-like macro for structs that holds references to all the accounts the function will access during its...
6 min read
Reading Another Anchor Program's Account Data On Chain In Solidity, reading another contract's storage requires calling a function or the storage variable being public. In Solana, an off-chain client...
4 min read
Solana logs, "events," and transaction history !Solana logs, "events," and transaction history Solana programs can emit events similar to how Ethereum emits events, though there are some differences...
4 min read
Function modifiers (view, pure, payable) and fallback functions in Solana: why they don't exist !Hero image showing view, pure, payable, fallback, and receive in Solona Solana does not have fallback...
8 min read
Introduction to Solana Compute Units and Transaction Fees !Solana Compute Units In Ethereum, the price of a transaction is computed as $\text{gasUsed} \times \text{gasPrice}$. This tells us how much...