You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Unauthorized copying of this file, via any medium is strictly prohibited
5
+
* Proprietary and confidential, use only granted under applicable License
6
+
7
+
Permission is hereby granted only under a license to use for testing and evaluating purposes only, to any authorized person obtaining access to this software, associated documentation files, and services (the "Product") to use the Product to support personal or professional operations subject to the License's restrictions. No user may rent, loan, sub-license, license, distribute, copy, decompile, disassemble, merge, modify, adapt, translate, reverse-engineer, make alterations to or derivative works based upon or derive source code from, nor attempt to grant any other rights to or in any whole or part of the Product any whole or part of the Product.
8
+
This above copyright notice and this permission notice shall be included in all copies or substantial portions of the software.
-[Node.js](https://nodejs.org/en/download/package-manager) or launch in [code-spaces](https://codespaces.new/Blockdaemon/demo-buildervault-stakingAPI?quickstart=1)
22
+
- 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
25
+
26
+
### Step 1. Set environment variables in .env
27
+
```shell
28
+
cd ethereum-staking/fireblocks/nodejs/
29
+
cp .env.example .env
30
+
```
31
+
- update .env with API keys and Fireblocks Vault details
32
+
33
+
### Step 2. Install package dependancies
34
+
```shell
35
+
npm install
36
+
```
37
+
38
+
### Step 3. Launch ethereum-stake-fb.ts to determine the Fireblocks wallet address
39
+
```shell
40
+
npm run start ethereum-stake-fb.ts
41
+
```
42
+
- if needed, copy the new Ethereum wallet address and fund the account with https://holesky-faucet.pk910.de/#/
43
+
44
+
### Step 4. Re-launch ethereum-stake-fb.ts to generate the Stake Intent request, execute the contract with Fireblocks, and broadcast the transaction
45
+
```shell
46
+
npm run start ethereum-stake-fb.ts
47
+
```
48
+
- observe the confirmed transaction through the generated blockexplorer link
0 commit comments