The technical content top engineers rely on to level up.
7 min read
The unusual syntax of Rust !The unusual syntax of Rust Readers coming from a Solidity or Javascript background may find Rust's usage and syntax of , , , , and to be weird (or even ugly). This chapter...
5 min read
Deleting and Closing Accounts and Programs in Solana !Hero image showing Close accounts and programs In the Anchor framework for Solana, is the opposite of (initializing an account in Anchor) — it...
7 min read
Understanding Account Ownership in Solana: Transferring SOL out of a PDA !Hero image showing Solona account ownership The owner of an account in Solana is able to reduce the SOL balance, write data...
5 min read
The Solana clock and other "block" variables !solana clock Today we will cover the analogs of all the block variables from Solidity. Not all of them have 1-1 analogs. In Solidity, we have the...
6 min read
Tx.origin, msg.sender, and onlyOwner in Solana: identifying the caller !tx.origin msg.sender onlyOwner in Solana In Solidity, the is a global variable that represents the address that called or...
4 min read
Reading an account balance in Anchor: address(account).balance in Solana !Solona and Anchor get account balance Reading an account balance in Anchor Rust To read the Solana balance of an address...
8 min read
Owner vs Authority in Solana !Hero image showing Owner vs Authority Newcomers to Solana are frequently confused by the distinction between an "owner" and an "authority." This article attempts to...
7 min read
Modifying accounts using different signers !Hero image showing Anchor Signer: Modifying accounts with different signers In our Solana tutorials thus far, we've only had one account initialize and...
6 min read
PDA (Program Derived Address) vs Keypair Account in Solana !Hero image showing PDA (Program Derived Address v.s. Keypair accounts) A program derived address (PDA) is an account whose address is...
7 min read
Init_if_needed in Anchor and the Reinitialization Attack !Hero image showing Anchor init_if_needed In previous tutorials, we've had to initialize an account in a separate transaction before we can...
4 min read
Transferring SOL and building a payment splitter: "msg.value" in Solana !Hero image showing Transfering SOL and building a payment splitter This tutorial will introduce the mechanism by which Solana...
9 min read
Solana Sysvars Explained !Solana Sysvars In Solana, sysvars are read-only system accounts that give Solana programs access to the blockchain state as well as network information. They are similar to...