Skip to content

Commit c6daf2e

Browse files
committed
fix: updated info accordiace with QA check
1 parent 1e1d89b commit c6daf2e

File tree

2 files changed

+41
-5
lines changed

2 files changed

+41
-5
lines changed
-1020 KB
Loading

docs/guides/solana-manual-withdrawal-cli.md

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@ We've prepared a CLI in Solido to simplify your workflow. You'll need to:
88
Follow the instructions at [Rust Installation](https://www.rust-lang.org/tools/install).
99

1010
```bash
11-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh source "$HOME/.cargo/env"rustup override set 1.60.0
11+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
12+
source "$HOME/.cargo/env"
13+
rustup override set 1.60.0
1214
```
1315

1416
2. **Install Solana CLI v1.13.7**:
1517
Visit [Solana CLI Installation](https://solana.com/docs/intro/installation).
1618

1719
```bash
1820
sh -c "$(curl -sSfL https://release.solana.com/v1.13.7/install)"
21+
export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"
1922
```
2023

2124
3. **Install Solido CLI v2.1.0** from the official GitHub repository:
@@ -27,6 +30,31 @@ cd solido_v2
2730
cargo build --release
2831
```
2932

33+
:::warning Compilation error with anchor-lang
34+
If the build fails due to a broken submodule in the `anchor-lang` dependency, you need to create a fork with the fix:
35+
36+
```bash
37+
git clone -b solana-1.9.28 https://github.com/AnchorLang/anchor-solana1.9.28.git
38+
cd anchor-solana1.9.28
39+
40+
git submodule deinit -f examples/cfo/deps/stake || true
41+
git rm -f examples/cfo/deps/stake || true
42+
rm -rf .git/modules/examples/cfo/deps/stake || true
43+
44+
git commit -m "Remove broken stake submodule"
45+
git remote set-url origin https://github.com/YOUR_GITHUB_USERNAME/anchor-solana1.9.28.git
46+
git push origin solana-1.9.28
47+
```
48+
49+
Then update `Cargo.toml` in the `solido_v2` directory, replacing the `anchor-lang` dependency with your fork:
50+
51+
```toml
52+
anchor-lang = { git = "https://github.com/YOUR_GITHUB_USERNAME/anchor-solana1.9.28", branch = "solana-1.9.28" }
53+
```
54+
55+
After that, re-run `cargo build --release`.
56+
:::
57+
3058
## 2. Transfer stSOL to Local Account
3159

3260
⚠️ **Note**: Our CLI can only work with local keys. Consider using a new account for withdrawals to keep your main wallet secure. The withdrawal operation will utilize the following:
@@ -44,17 +72,25 @@ solana-keygen new --outfile ./local-keypair.json
4472

4573
Remember the **`KEYPAIR_FILE`** path and **`SOL_ACCOUNT_PUBKEY`** from the output.
4674

47-
2. **Verify the new account with `SOL_ACCOUNT_PUBKEY`**:
75+
2. **Configure RPC endpoint**:
76+
77+
The default Solana RPC endpoint may not work reliably for mainnet operations. Set a dedicated RPC URL (e.g., from [Helius](https://www.helius.dev/)):
78+
79+
```bash
80+
solana config set --url https://mainnet.helius-rpc.com/?api-key=YOUR_API_KEY
81+
```
82+
83+
3. **Verify the new account with `SOL_ACCOUNT_PUBKEY`**:
4884

4985
```bash
5086
solana balance SOL_ACCOUNT_PUBKEY
5187
```
5288

53-
3. **Transfer stSOL to the local account using `SOL_ACCOUNT_PUBKEY`** and **note the transaction signature**.
89+
4. **Transfer stSOL to the local account using `SOL_ACCOUNT_PUBKEY`** and **note the transaction signature**.
5490

55-
4. **Identify `STSOL_ACCOUNT_PUBKEY`**:
91+
5. **Identify `STSOL_ACCOUNT_PUBKEY`**:
5692

57-
⚠️ After transferring stSOL, a child account for stSOL is created under your local account. To proceed, locate this address by searching your **transaction signature** on [Solscan](https://solscan.io/) and saving the **Destination** pubkey found under **Instruction Details →#3 - Token Transfer**.
93+
⚠️ After transferring stSOL, a child account for stSOL is created under your local account. To proceed, locate this address by searching your **transaction signature** on [Solscan](https://solscan.io/) and saving the **Destination** pubkey found under **Token Program: TransferChecked** in the instruction details.
5894

5995
![STSOL_ACCOUNT_PUBKEY](./images/stsol_account_pubkey.png)
6096

0 commit comments

Comments
 (0)