DEV Community

john
john

Posted on

Developer's Guide to Solayer: Integrating with Solana's First Restaking Layer

Solayer Official brings shared security to Solana, allowing developers to bootstrap new protocols by leveraging the network's existing validator set. This guide provides a technical walkthrough on how to perform SOL Liquid Restaking and prepare for Solayer AVS Integration.

Core Concept: Restaking on Solana
The problem for new protocols is bootstrapping their own validator network, which is expensive and time-consuming. Solayer Restaking Solana allows stakers to recommit their staked SOL (including LSTs) to secure other protocols (Actively Validated Services - AVS). This extends Solana's security to the application layer.

Step 1: How to Restake with Solayer
For asset holders, the process is designed to be seamless.

Navigate to the Solayer platform.

Connect your Solana wallet containing staked SOL or a supported LST.

Choose a validator or AVS to delegate your restaked assets to.

Confirm the transaction. Your assets are now restaked, earning additional Solayer Rewards on top of your base staking yield.

Step 2: For Validators: The Solayer Validator Guide
Validators can opt-in to run software for AVSs.

Install the Solayer client software alongside your existing validator setup. This software manages the validation tasks for the AVSs you choose to support.

Register your validator with the Solayer protocol.

Restaked SOL will be delegated to you to perform validation work for specific AVSs. This provides an additional revenue stream for your operation.

Step 3: For Developers: AVS Integration
If you are building an AVS (e.g., a decentralized oracle, a bridge, or a sequencer), you can integrate with Solayer to inherit security. The protocol uses a system of Solayer Epochs Explained in the docs to manage validator sets and reward distribution.

TypeScript
// Pseudocode for AVS registration
import { SolayerAVS } from '@solayer-sdk';

const avs = new SolayerAVS({
name: 'MyAwesomeOracle',
securityRequirement: '100000_SOL_RESTAKED',
});

await avs.register();
// --> Begin attracting restaked capital
For a complete architectural overview, refer to the Full Official Documentation.

Top comments (0)