Comprehensive JavaScript SDK for building Solana blockchain applications with modern architecture and type safety
93
Evaluation — 93%
↑ 1.29xAgent success when using this tile
Build a command-line tool that helps users manage their Solana staking operations by providing utilities to split stake accounts into multiple smaller accounts and merge multiple stake accounts into a single account.
Your tool must support the following operations:
Split Stake Account: Take an existing stake account and split it into multiple new stake accounts with specified amounts. The original account should retain any remaining lamports after the splits.
Merge Stake Accounts: Take two or more stake accounts that belong to the same authority and merge them into a single stake account. All lamports should be consolidated into the target account.
The tool should accept:
The tool should:
Provides the core functionality for interacting with the Solana blockchain, including stake account operations.
Test File: split-stake.test.js
Setup:
Operation: Split the stake account into two new accounts with 3 SOL and 2 SOL respectively.
Expected Outcome:
Test File: merge-stake.test.js
Setup:
Operation: Merge Account B and Account C into Account A.
Expected Outcome:
Test File: error-handling.test.js
Setup:
Operation: Attempt to split the stake account using the unauthorized keypair.
Expected Outcome:
Install with Tessl CLI
npx tessl i tessl/npm-solana--web3-jsdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10