npm i @blockswaplab/k2-sdk
.
Create Ethereum Signer: Create an Ethereum signer using your private key and Ethereum provider.
const provider = new ethers.providers.JsonRpcProvider(providerUrl);
const signer = new ethers.Wallet(PRIV_KEY, provider);
Run nodeOperatorDeposit Function: Use the K2 SDK to call the nodeOperatorDeposit function with the required parameters.
signer.address
must match the representative address in the PoN proposer registry login.