Skip to main content
Try out the RareSkills ZK AI Tutor!

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…

Last updated onSep 13, 2024
Read Article

8 min read

Introduction to Solana Compute Units and Transaction Fees

In Ethereum, the price of a transaction is computed as gasUsed × gasPrice.

Last updated onAug 15, 2024
Read Article

8 min read

Owner vs Authority in Solana

Newcomers to Solana are frequently confused by the distinction between an "owner" and an "authority."

Last updated onAug 15, 2024
Read Article

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.

Last updated onAug 28, 2024
Read Article

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.

Last updated onSep 5, 2024
Read Article

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.

Last updated onAug 15, 2024
Read Article

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.

Last updated onAug 18, 2024
Read Article

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…

Last updated onAug 15, 2024
Read Article

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.

Last updated onAug 15, 2024
Read Article

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.

Last updated onAug 15, 2024
Read Article

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.

Last updated onAug 15, 2024
Read Article

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.

Last updated onAug 15, 2024
Read Article