Claim

Claim is the process of withdrawing tokens from the Validator Wallet to the user's personal wallet. This step transfers ETH that was moved to the Wallet Contract during the unstaking process.

Claim requires manually running the provided script from the Git Repository.

STEP 1 - WithdrawStakerFunds

  • This step withdraws ETH stored as withdrawableFunds in the rollup contract and transfers it to the Validator Wallet Contract.

  • Once completed, the ETH will be held in the Validator Wallet Contract, ready for the final withdrawal.

const res = await rollup.withdrawStakerFunds();

const receipt = await res.wait();

console.log(receipt.transactionHash)

STEP 2 - Withdraw ETH

  • The final step involves withdrawing the staked ETH from the Validator Wallet Contract.

  • By calling the appropriate function, the ETH stored in the Validator Wallet will be transferred to the user’s personal wallet.

const withdrawReq = await walletContract.withdrawEth(
	ethers.utils.parseEther(withdrawAmount), wallet.address
);

const reciept = await withdrawReq.wait();

console.log(receipt.transactionHash)

Last updated