File tree 5 files changed +415
-173
lines changed
solana-staking/fireblocks/nodejs
5 files changed +415
-173
lines changed Original file line number Diff line number Diff line change 1
1
# Blockdaemon Stake
2
- SOLANA_VALIDATOR_ADDRESS = HiFjzpR7e5Kv2tdU9jtE4FbH1X8Z9Syia3Uadadx18b5 # Blockdaemon Solana Testnet vote account = HiFjzpR7e5Kv2tdU9jtE4FbH1X8Z9Syia3Uadadx18b5
2
+ SOLANA_VOTE_ACCOUNT = FQwewNXahV7MiZcLpY6p1xhUs2acVGQ3U5Xxc7FzV571 # Blockdaemon Solana Mainnet vote account = FQwewNXahV7MiZcLpY6p1xhUs2acVGQ3U5Xxc7FzV571
3
3
BLOCKDAEMON_API_KEY =
4
4
BLOCKDAEMON_STAKE_API_KEY =
5
- SOLANA_NETWORK = testnet # mainnet | testnet | devnet
6
- PLAN_ID = # Optional. If provided, will use a specific validator plan.
5
+ SOLANA_NETWORK = mainnet # mainnet | Fireblocks testnet = devnet. DevNet is not supported by Staking API
6
+ SOLANA_STAKE_AMOUNT = 1 # Amount of SOL to stake to the validator.
7
+ PLAN_ID = # Optional. If provided, will use a specific validator plan.
7
8
8
9
# Fireblocks
9
- FIREBLOCKS_BASE_PATH = " https=//sandbox- api.fireblocks.io/v1"
10
+ FIREBLOCKS_BASE_PATH = " https:// api.fireblocks.io/v1"
10
11
FIREBLOCKS_API_KEY = " my-api-key"
11
- FIREBLOCKS_SECRET_KEY = " my-secret-key"
12
- FIREBLOCKS_DELEGATOR_PUBLICKEY = " "
12
+ FIREBLOCKS_SECRET_KEY = " /Users/johndoe/my-secret-key"
13
13
FIREBLOCKS_VAULT_ACCOUNT_ID = " 0"
Original file line number Diff line number Diff line change @@ -30,29 +30,16 @@ sequenceDiagram
30
30
cd solana-staking/fireblocks/nodejs/
31
31
cp .env.example .env
32
32
```
33
- - update .env with API keys
33
+ - update .env with API keys, Fireblocks Vault ID
34
34
35
35
### Step 2. Install package dependancies
36
36
``` shell
37
37
npm install
38
38
```
39
39
40
- ### Step 3. Launch solana-stake-fb.ts to auto-create the Builder Vault wallet address on first run
40
+ ### Step 3. Launch solana-stake-fb.ts to generate the Stake Intent request, sign the request with Fireblocks and broadcast the transaction
41
41
``` shell
42
42
npm run start solana-stake-fb.ts
43
43
```
44
- - note, on first run this step will fail as the wallet address has no funds
45
- - copy the new Solana wallet address and fund the account
46
-
47
- ### Step 4. Fund the new Solana wallet address with 2 SOL using faucets below
48
- - https://solfaucet.com
49
- - https://faucet.triangleplatform.com/solana/testnet
50
- - https://faucet.quicknode.com/solana/testnet
51
- - https://solfate.com/faucet
52
-
53
- ### Step 5. Launch solana-stake-fb.ts to generate the Stake Intent request, sign the request with BuilderVault and broadcast the transaction
54
- ``` shell
55
- npm run start solana-stake-fb.ts
56
- ```
57
- - [ optional] view the signed transaction contents with inspector: https://explorer.solana.com/tx/inspector?cluster=testnet
44
+ - [ optional] view the signed transaction contents with inspector: https://explorer.solana.com/tx/inspector
58
45
- observe the confirmed transaction through the generated blockexplorer link
You can’t perform that action at this time.
0 commit comments