Solayer SOL Restaking
Restake SOL to receive sSOL through Solayer Protocol
Restake SOL tokens to receive sSOL (Solayer SOL) through Solayer’s restaking protocol. Earn enhanced yields through restaking while maintaining liquidity through the sSOL token.
Restaking Operations
SOL to sSOL conversion
Enhanced staking yields
Liquid staking token (LST)
Automatic compounding
Key Benefits
Higher APY through restaking
Liquid token representation
Double-yield potential
Protocol security
Copy
// Restake SOL to receive sSOL
const signature = await agent.methods.restake(
1.0 // Amount of SOL to restake
);
amount
number
Yes
Amount of SOL to restake
Copy
"Restake 1 SOL on Solayer"
"Convert SOL to sSOL for better yields"
"Stake 2.5 SOL with Solayer restaking"
"Get sSOL by staking 0.5 SOL"
Copy
// Basic restaking
{
"amount": 1.0
}
// Minimum stake
{
"amount": 0.1
}
// Direct amount input
"1.5"
Copy
interface RestakeParams {
amount: number; // SOL amount
account: string; // Wallet address
}
// Features
- Versioned transactions
- Blockhash handling
- Multiple retries
- Confirmation tracking
Copy
// Success response
{
status: "success",
message: "Staked successfully",
transaction: "3FgHn9...",
amount: 1.0
}
// Error response
{
status: "error",
message: "Solayer sSOL staking failed: insufficient funds",
code: "UNKNOWN_ERROR"
}
Copy
try {
const signature = await agent.methods.restake(amount);
} catch (error) {
if (error.message.includes("insufficient funds")) {
// Handle insufficient balance
} else if (error.message.includes("request failed")) {
// Handle API issues
}
}
Restaking Management
Verify SOL balance
Consider gas fees
Monitor yields
Track restaking rewards
Transaction Handling
Implement retries
Check confirmations
Handle timeouts
Monitor failures
Balance Management
Track SOL/sSOL ratio
Monitor yield rates
Consider unlock periods
Plan exit strategy
Security
Verify transactions
Check approvals
Monitor positions
Review permissions
Restaking
Insufficient SOL
Network congestion
API timeouts
Rate limits
Transaction
Failed confirmations
Version mismatches
Blockhash issues
Signature errors
Balance
Sync delays
Fee calculations
Reward tracking
Rate updates
Copy
// Token addresses and information
const SSOL_MINT = "..."; // Solayer SOL mint address
const RESTAKING_PROGRAM = "..."; // Solayer program ID
Initialize
Copy
// Prepare restaking request
const response = await fetch(
`https://app.solayer.org/api/action/restake/ssol?amount=${amount}`
);
Process
Copy
// Deserialize and sign transaction
const txn = VersionedTransaction.deserialize(buffer);
txn.message.recentBlockhash = blockhash;
txn.sign([wallet]);
Confirm
Copy
// Wait for confirmation
await connection.confirmTransaction({
signature,
blockhash,
lastValidBlockHeight
});
Restaking Mechanism
Enhanced yield generation
Automatic compounding
Multiple validator support
Risk distribution
Security
Audited contracts
Distributed validation
Emergency procedures
Risk management
Rewards
Double-yield potential
Automatic processing
Real-time tracking
Compound interest
Related Functions
getBalance
: Check SOL balancegetSsolBalance
: Check sSOL balanceunrestake
: Convert back to SOLcheckYield
: View current APY
Minimum Stake
Network fees consideration
Slippage tolerance
Minimum amounts
Protocol limits
Performance
Monitor APY changes
Track restaking rewards
Compare rates
Review fees
Risk Management
Diversification strategy
Exit planning
Market monitoring
Protocol updates
Last updated