Browse all Solana articles.

2 min read
Day 1: hello-world-solana [x] Day 2: rust-arithmetic-operators [x] Day 3: anchor-idl [x] Day 4: solana-require-macro [x] Day 5: solana-anchor-deploy [x] Day 6: rust-basic-syntax [x] Day 7:...
Last updated on Aug 15, 2024
Solana programs are upgradeable and do not have constructors !Hero image showing Anchor deploy In this tutorial we will peek behind the scenes of anchor to see how a Solana program gets deployed....
Last updated on Aug 15, 2024
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...
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
Visibility and "inheritance" in Rust and Solana !Rust function visibillity Today we will be learning how Solidity's function visibility and contract inheritance can be conceptualized in Solana. There...
Last updated on Aug 15, 2024
3 min read
Rust function-like procedural Macros !Rust function-like procedural Macros This tutorial explains the distinction between functions and function like macros. For example, why does have an exclamation...
Last updated on Aug 15, 2024
Require, Revert, and Custom Errors in Solana !Hero Image showing Error code and Macro In Ethereum, we often see a require statement restricting the values a function argument can have. Consider the...
Last updated on Aug 15, 2024
5 min read
Basic Rust for Solidity Developers !Hero image showing Rust : the easy parts This tutorial goes over the most commonly used syntax in Solidity and demonstrates the equivalent in Rust. If you want a...
Last updated on Aug 15, 2024
Rust Structs and Attribute-like and Custom Derive Macros !Rust attribute and custom-derive macros Attribute-like and custom derive macros in Rust are used to take a block of Rust code and modify it...
Last updated on Aug 15, 2024
Arithmetic and Basic Types in Solana and Rust !Hero image showing the Solana logo and a calculator Today we will learn how to create a Solana program that accomplishes the same things as the Solidity...
Last updated on Aug 15, 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