The technical content top engineers rely on to level up.
16 min read
20 Common Solidity Beginner Mistakes Our intent is not to be patronizing towards developers early in their journey with this article. Having reviewed code from numerous Solidity developers, we’ve...
22 min read
The intuition behind elliptic curve digital signatures (ECDSA) This article explains how the ECDSA (Elliptic Curve Digital Signature Algorithm) works as well as why it works. We will incrementally...
4 min read
UniswapV2Library Code Walkthrough UniswapV2Library The Uniswap V2 Library simplifies some interactions with pair contracts and is used heavily by the Router contracts. It contains eight functions...
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...
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...
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...
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
#[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...
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...