Skip to content

Commit 26eb827

Browse files
committed
chose(SOLNENG-27): update docs
1 parent c54ef01 commit 26eb827

File tree

5 files changed

+6
-13
lines changed

5 files changed

+6
-13
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ This repository contains multiple applications. Below are the links to the indiv
44
To get started, click on the links for installation and usage instructions.
55

66
## Solana Staking
7-
- [Stake deposit from Builder Vault wallet with TypeScript SDK](./solana-staking/buildervault/nodejs/README.md) - [(video clip)](./media/solana-staking-with-buildervault-wallet-using-typescript.mp4)
7+
- [Stake deposit from Builder Vault wallet with TypeScript SDK](./solana-staking/buildervault/nodejs/README.md) - [(video clip)](https://youtu.be/wy-10gsdSGs?feature=shared)
88
- [Stake deposit from Fireblocks wallet with TypeScript SDK](./solana-staking/fireblocks/nodejs/README.md)
99

1010
## Ethereum Staking
1111
- [Stake deposit from Builder Vault wallet with Golang SDK](./ethereum-staking/buildervault/golang/README.md)
1212
- [Stake deposit from Builder Vault wallet with TypeScript SDK](./ethereum-staking/buildervault/nodejs/README.md)
13-
- [Stake deposit from Fireblocks wallet with TypeScript SDK](./ethereum-staking/fireblocks/nodejs/README.md)
13+
- [Stake deposit from Fireblocks wallet with TypeScript SDK](./ethereum-staking/fireblocks/nodejs/README.md) - [(video clip)](https://youtu.be/_6uwwNTh7iQ?feature=shared)
1414

ethereum-staking/fireblocks/nodejs/.env.example

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Blockdaemon Stake
2-
BLOCKDAEMON_API_KEY=
32
BLOCKDAEMON_STAKE_API_KEY=
43
ETHEREUM_NETWORK=holesky # mainnet | holesky
54
ETHEREUM_WITHDRAWAL_ADDRESS=

ethereum-staking/fireblocks/nodejs/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ sequenceDiagram
2020
### Prerequisites
2121
- [Node.js](https://nodejs.org/en/download/package-manager) or launch in [code-spaces](https://codespaces.new/Blockdaemon/demo-buildervault-stakingAPI?quickstart=1)
2222
- Create Fireblocks [API and Secret key](https://developers.fireblocks.com/docs/manage-api-keys) for use with the [Fireblocks Web3 provider](https://github.com/fireblocks/fireblocks-web3-provider)
23-
- Register free Blockdaemon [RPC API key](https://docs.blockdaemon.com/reference/get-started-rpc#step-1-sign-up-for-an-api-key) and set in .env as BLOCKDAEMON_API_KEY
24-
- Register free Blockdaemon [Staking API key](https://docs.blockdaemon.com/reference/get-started-staking-api#step-1-sign-up-for-an-api-key) and set in .env as BLOCKDAEMON_STAKE_API_KEY
23+
- Ensure you have a Fireblocks Transaction Policy that permits Contract Calls for your Ethereum vault [Fireblocks TAP](https://developers.fireblocks.com/reference/configure-transaction-authorization-policy#tap-examples)
24+
- Should you wish to allow-list the contracts, the Blockdaemon Ethereum Batch Deposit addresses are Mainnet:`0x3F124C700fb5E741F128e28985267D44f56B242F` and Holesky:`0x0b6E07c5EAd5596C1f26ca2F6B97050ceC853671`
25+
- Register a free Blockdaemon [Staking API key](https://docs.blockdaemon.com/reference/get-started-staking-api#step-1-sign-up-for-an-api-key) and set in .env as BLOCKDAEMON_STAKE_API_KEY
2526

2627
### Step 1. Set environment variables in .env
2728
```shell

ethereum-staking/fireblocks/nodejs/ethereum-stake-fb.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function createStakeIntent(
3939
'Content-Type': 'application/json',
4040
Accept: 'application/json',
4141
'X-API-Key': bossApiKey,
42-
'Idempotency-Key': 'FB81DEED-D58B-4948-B51D-99E2E1064B9C',
42+
//'Idempotency-Key': 'FB81DEED-D58B-4948-B51D-99E2E1064B9C',
4343
},
4444
body: JSON.stringify(request),
4545
};
@@ -55,10 +55,6 @@ async function main() {
5555
const gwei = 10n ** 9n;
5656

5757
// Check for the required environment variables
58-
if (!process.env.BLOCKDAEMON_API_KEY) {
59-
throw new Error('BLOCKDAEMON_API_KEY environment variable not set');
60-
}
61-
6258
if (!process.env.BLOCKDAEMON_STAKE_API_KEY) {
6359
throw new Error('BLOCKDAEMON_STAKE_API_KEY environment variable not set');
6460
}

media/solana-staking-with-buildervault-wallet-using-typescript.mp4

-3
This file was deleted.

0 commit comments

Comments
 (0)