Solana
Browse all Solana articles.
5 min read
Deleting and Closing Accounts and Programs in Solana
In the Anchor framework for Solana, close is the opposite of init (initializing an account in Anchor) — it reduces the lamport balance to zero, sending…
8 min read
Introduction to Solana Compute Units and Transaction Fees
In Ethereum, the price of a transaction is computed as gasUsed × gasPrice.
8 min read
Owner vs Authority in Solana
Newcomers to Solana are frequently confused by the distinction between an "owner" and an "authority."
9 min read
Solana Sysvars Explained
In Solana, sysvars are read-only system accounts that give Solana programs access to the blockchain state as well as network information.
5 min read
The Solana clock and other "block" variables
Today we will cover the analogs of all the block variables from Solidity. Not all of them have 1-1 analogs.
4 min read
Function modifiers (view, pure, payable) and fallback functions in Solana: why they don't exist
A Solana transaction must specify in advance the accounts it will modify or read as part of a transaction.
5 min read
Solana Anchor Program IDL
The IDL (Interface Definition Language) is a JSON file that describes how to interact with a Solana program.
5 min read
Rust Structs and Attribute-like and Custom Derive Macros
Attribute-like and custom derive macros in Rust are used to take a block of Rust code and modify it in some way at compile time, often to add…
4 min read
Solana programs are upgradeable and do not have constructors
In this tutorial we will peek behind the scenes of anchor to see how a Solana program gets deployed.
5 min read
Visibility and "inheritance" in Rust and Solana
Today we will be learning how Solidity's function visibility and contract inheritance can be conceptualized in Solana.
6 min read
Arithmetic and Basic Types in Solana and Rust
Today we will learn how to create a Solana program that accomplishes the same things as the Solidity contract below.
5 min read
Basic Rust for Solidity Developers
This tutorial goes over the most commonly used syntax in Solidity and demonstrates the equivalent in Rust.