Skip to content

Commit

Permalink
chose(SOLNENG-27): update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MnrGreg committed Sep 16, 2024
1 parent c54ef01 commit 61c3343
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ This repository contains multiple applications. Below are the links to the indiv
To get started, click on the links for installation and usage instructions.

## Solana Staking
- [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)
- [Stake deposit from Builder Vault wallet with TypeScript SDK](./solana-staking/buildervault/nodejs/README.md) - [(video clip)](https://youtu.be/wy-10gsdSGs?feature=shared)
- [Stake deposit from Fireblocks wallet with TypeScript SDK](./solana-staking/fireblocks/nodejs/README.md)

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

1 change: 0 additions & 1 deletion ethereum-staking/fireblocks/nodejs/.env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Blockdaemon Stake
BLOCKDAEMON_API_KEY=
BLOCKDAEMON_STAKE_API_KEY=
ETHEREUM_NETWORK=holesky # mainnet | holesky
ETHEREUM_WITHDRAWAL_ADDRESS=
Expand Down
5 changes: 3 additions & 2 deletions ethereum-staking/fireblocks/nodejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ sequenceDiagram
### Prerequisites
- [Node.js](https://nodejs.org/en/download/package-manager) or launch in [code-spaces](https://codespaces.new/Blockdaemon/demo-buildervault-stakingAPI?quickstart=1)
- 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)
- 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
- 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
- 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)
- Should you wish to allow-list the contracts, the Blockdaemon Ethereum Batch Deposit addresses are Mainnet:`0x3F124C700fb5E741F128e28985267D44f56B242F` and Holesky:`0x0b6E07c5EAd5596C1f26ca2F6B97050ceC853671`
- 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

### Step 1. Set environment variables in .env
```shell
Expand Down
6 changes: 1 addition & 5 deletions ethereum-staking/fireblocks/nodejs/ethereum-stake-fb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function createStakeIntent(
'Content-Type': 'application/json',
Accept: 'application/json',
'X-API-Key': bossApiKey,
'Idempotency-Key': 'FB81DEED-D58B-4948-B51D-99E2E1064B9C',
//'Idempotency-Key': 'FB81DEED-D58B-4948-B51D-99E2E1064B9C',
},
body: JSON.stringify(request),
};
Expand All @@ -55,10 +55,6 @@ async function main() {
const gwei = 10n ** 9n;

// Check for the required environment variables
if (!process.env.BLOCKDAEMON_API_KEY) {
throw new Error('BLOCKDAEMON_API_KEY environment variable not set');
}

if (!process.env.BLOCKDAEMON_STAKE_API_KEY) {
throw new Error('BLOCKDAEMON_STAKE_API_KEY environment variable not set');
}
Expand Down
Git LFS file not shown

0 comments on commit 61c3343

Please sign in to comment.