File tree Expand file tree Collapse file tree 5 files changed +418
-173
lines changed
solana-staking/fireblocks/nodejs Expand file tree Collapse file tree 5 files changed +418
-173
lines changed Original file line number Diff line number Diff line change 11# Blockdaemon Stake
2- SOLANA_VALIDATOR_ADDRESS = HiFjzpR7e5Kv2tdU9jtE4FbH1X8Z9Syia3Uadadx18b5 # Blockdaemon Solana Testnet vote account = HiFjzpR7e5Kv2tdU9jtE4FbH1X8Z9Syia3Uadadx18b5
2+ SOLANA_VOTE_ACCOUNT = FQwewNXahV7MiZcLpY6p1xhUs2acVGQ3U5Xxc7FzV571 # Blockdaemon Solana Mainnet vote account = FQwewNXahV7MiZcLpY6p1xhUs2acVGQ3U5Xxc7FzV571
33BLOCKDAEMON_API_KEY =
44BLOCKDAEMON_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.
78
89# Fireblocks
9- FIREBLOCKS_BASE_PATH = " https=//sandbox- api.fireblocks.io/v1"
10+ FIREBLOCKS_BASE_PATH = " https:// api.fireblocks.io/v1"
1011FIREBLOCKS_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"
1313FIREBLOCKS_VAULT_ACCOUNT_ID = " 0"
Original file line number Diff line number Diff line change @@ -30,29 +30,16 @@ sequenceDiagram
3030cd solana-staking/fireblocks/nodejs/
3131cp .env.example .env
3232```
33- - update .env with API keys
33+ - update .env with API keys, Fireblocks Vault ID
3434
3535### Step 2. Install package dependancies
3636``` shell
3737npm install
3838```
3939
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
4141``` shell
4242npm run start solana-stake-fb.ts
4343```
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
5845- observe the confirmed transaction through the generated blockexplorer link
You can’t perform that action at this time.
0 commit comments