dKargo Docs
dKargo.ioWhitepaper
Docs ENG
Docs ENG
  • Welcome to dKargo
  • Run dKargo Node
    • Chain RPC
    • Installation Guide
    • Types of Chain Node
    • Full Node
    • Archive Full Node
    • Validator Node
  • Wallet Setup
    • Connectiong to MetaMask
    • Creating a wallet
    • Importing a Wallet
    • Adding the dKargo Network
  • Validator Operations
    • Validator Staking
    • Staking
    • Unstaking
    • Claim
  • Deploy Contract
    • How to deploy a contract
    • Deploying a Contract Using Remix-IDE
    • Deploying a Contract Using Hardhat
    • Deploying a Contract Using Foundry
  • ERC-20 BRIDGING
    • ERC-20 Bridging
    • Standard Gateway
    • Generic-custom Gateway
    • Custom Gateway
  • DKA Bridging
    • DKA Bridging
    • DKA Deposit
    • DKA Withdraw
  • Faucet
    • Faucet for Testnet Tokens
    • Claiming Testnet Tokens
  • Chain Snapshot
    • Download the Latest Chain Snapshot
  • Contract Address
    • Contract Address List
  • Bug Bounty
    • Bug Bounty Program
Powered by GitBook
On this page
  • STEP 1 - WithdrawStakerFunds
  • STEP 2 - Withdraw ETH
  1. Validator Operations

Claim

PreviousUnstakingNextHow to deploy a contract

Last updated 1 month ago

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)
https://github.com/dKargo/dkargo-validator-utils