Sablier on Solana
This part of the documentation is in its early stages and will be continuously improved over time. We're actively working on the content to include more guides, examples, and detailed explanations.
Introduction
Welcome to the Sablier on Solana documentation.
This section assumes you are familiar with the Sablier Protocol and its Ethereum high level concepts. Here, we focus on what's specific to the Solana blockchain and how it differs from Ethereum.
For more information on the original Sablier Protocol, refer to the main documentation. You can also find information about Streaming and Airdrops in the Concepts section.
SolSab
SolSab is a collection of protocols featuring two main Solana programs: Sablier Lockup and Sablier Merkle Instant. While not all protocols available for Ethereum are currently available for Solana, we aim to bring the same protocols to Solana in future iterations.
Unlike Ethereum, the programs here adhere to the best practices of Solana development and are upgradeable for greater security.
Lockup
The official deployment can be found at the address: 4EauRKrNErKfsR4XetEZJNmvACGHbHnHV4R5dvJuqupC
Sablier Lockup is a token distribution protocol that enables onchain vesting and payments. Our flagship model is the linear stream, which distributes tokens on a continuous, by-the-second basis.
The way it works is that the creator of a payment stream first deposits a specific amount of SPL or Token2022 tokens. The program then progressively allocates the funds to the recipient, who can access them as they become available over time. The payment rate is influenced by various factors, including the start and end times, as well as the total amount of tokens deposited.
Key differences from the Ethereum Lockup protocol
- The Solana program includes only the Linear streaming model, not the Dynamic and Tranched models. See the available shapes for the Linear model here.
- Due to the limitations of the Token Metadata NFT standard on Solana, we cannot have non-transferable NFTs.
- Tokens transferred during stream creation are placed in a dedicated Stream ATA (Associated Token Account), instead of all tokens being held in the Lockup contract as on Ethereum.
- We do not have hooks for the
cancel
andwithdraw
functionalities due to limitations in how Solana works.
Merkle Instant
The official deployment can be found at the address: 7XrxoQejBoGouW4V3aozTSwub7xSDjYqB4Go7YLjF9rV
Merkle Instant is a program that enables the creation of token airdrop campaigns using Merkle trees, allowing users to instantly claim and receive their allocation through a single transaction.
Key differences from the Ethereum Airdrops protocols
- The Solana program includes only the Instant airdrop model, not the Vesting airdrop models.
- Due to the nature of Solana's account architecture, we have a single program that handles both the creation and the claiming. In contrast to Ethereum, where we have a factory contract that deploys a stand-alone contract for each airdrop campaign.