Browse all Solana articles.

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...
Last updated on Nov 7, 2024
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...
Last updated on Sep 28, 2024
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...
Last updated on Sep 9, 2024
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...
Last updated on Sep 5, 2024
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...
Last updated on Sep 4, 2024
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...
Last updated on Sep 2, 2024
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...
Last updated on Sep 7, 2024
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...
Last updated on Aug 15, 2024
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...
Last updated on Aug 15, 2024
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...
Last updated on Sep 6, 2024
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...
Last updated on Aug 15, 2024
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...
Last updated on Sep 5, 2024