Browse all Solana articles.
8 min read
Native Solana: Creating Accounts For Storage I In this two-part tutorial, we'll learn how to create accounts for storing data in native Solana programs using two approaches: keypairs (this part) and...
12 min read
Native Solana: Cross-Program Invocation with invoke and invoke_signed Cross-Program Invocation (CPI) is how programs call other programs on the Solana blockchain. In this tutorial, we'll learn how to...
10 min read
Native Solana: Borsh Serialization In the previous tutorial, we learned how to read accounts passed to a program. We saw that calling gives a reference to the account’s data field as a raw byte...
4 min read
Native Solana: Reading Account Data As we discussed in the previous tutorial, the entrypoint is the "front door" of your Solana program and it handles all incoming instructions to the program. In...
9 min read
Native Solana: Program Entry and Execution All through this series, we've used the Anchor framework to build Solana programs. This tutorial teaches you how to write them in native Rust without...
12 min read
Switchboard On-chain programs can’t access off-chain data directly. They rely on oracles to bring in information such as asset prices, event outcomes, or API responses. Without these oracles,...
12 min read
Interest Bearing Token Part 1 The Token-2022 interest-bearing extension enables a token mint to automatically accrue interest on all token accounts for that specific mint. It uses an annual rate...
11 min read
Interest Bearing Token Part 2 The interest-bearing extension adds the ability for a token mint to accrue interest over time. In our previous discussion of Token-2022, we introduced the...
14 min read
Ed25519 Signature Verification in Solana Verifying Ed25519 Signatures in Solana Anchor Programs This tutorial shows how to verify an off-chain Ed25519 signature in a Solana program. In Solana, custom...
10 min read
Solana Instruction Introspection Instruction introspection enables a Solana program to read an instruction other than its own within the same transaction. Normally, a program can only read the...
9 min read
The Solana Token 2022 Specification Token-2022 is a new backward-compatible version of the SPL Token program that supports additional features in the form of extensions. The bytecode for these...
13 min read
Time Travel Testing with LiteSVM In Solana, writing test cases that depend on the passing of time is tricky. We might want to test that something happens in our code after a day passes, but we can't...