Create a DV Using the SDK
Pre-requisites
Install the package
npm install --save @obolnetwork/obol-sdkyarn add @obolnetwork/obol-sdkInstantiate the client
import { Client } from "@obolnetwork/obol-sdk";
import { ethers } from "ethers";
// Create a dummy ethers signer object with a throwaway private key
const mnemonic = ethers.Wallet.createRandom().mnemonic?.phrase || "";
const privateKey = ethers.Wallet.fromPhrase(mnemonic).privateKey;
const wallet = new ethers.Wallet(privateKey);
const signer = wallet.connect(null);
// Instantiate the Obol Client for Hoodi
const obol = new Client({ chainId: 560048 }, signer);Propose the cluster
Invite the Operators to complete the DKG
Retrieve the created Distributed Validators using the SDK
Activate the DVs using the deposit contract
Usage Examples
Last updated
Was this helpful?

