All Ethereum methods
Ethereum JS library methods
Actions
stake(address, amount, source)
: Stakes funds into pool. The minimum amount required for staking is 0.1 ETH.activateStake()
: Activates the pending stake by interchanging it with a withdrawal requests.autocompound(address)
: Claims all autocompound user rewards and restakes them into new pool automatically.unstake(address, amount, allowedInterchangeNum, source)
: You can unstake value from autocompound balance. Your ETH can be unstaked immediately if value <= pool pending balance. Also, if 'allowedInterchangeNum > 0', an instant ustake is possible. Else, you need to create a withdraw request. Please note that the execution of a withdraw request may take some time.simulateUnstake(address, amount, allowedInterchangeNum, source)
: Simulates transactions without committing them. It is required, especially for predicting transaction outcomes and gas fees in Ethereum blockchain.unstakePending(address, amount)
: Unstakes pending amount. Your ETH will be unstaked immediately. Smart contract checks remainder of pending balance after unstake. It should be greater or equal min stake amount (0.1 ETH for now).claimWithdrawRequest(address)
: Claims funds requested by withdraw
Getting Info
balance()
: Returns total deposited and activated pools balance. The total amount of ETH that has been staked.pendingBalance()
: Returns the pending balance of staked ETH in the pool, which is always less than 32 ETH.pendingBalanceOf(address)
: Returns the pending balance of the user, which represents the amount of ETH staked but not yet active due to the pool not being fully filled. There is one type of pending balance: "Autocompound," which represents rewards earned by the user that are automatically staked but not yet active.pendingDepositedBalance()
: Returns pool pending deposited balance. Balance was deposited into Beacon deposit contract but validators are still not active.pendingRestakedRewards()
: Returns pool restaked rewards which in pending status.pendingDepositedBalanceOf(address)
: Returns user pending deposited balance. Balance which deposited into validator but not active yet. Pending deposited balance can't be unstake till validator activation.pendingRestakedRewardOf(address)
: Returns user restaked rewards in pending state.RestakedRewardOf(address)
: Returns total user restaked rewards. Includes rewards in pending state.depositedBalanceOf(address)
: Returns user active origin deposited balance.getPoolFee()
: Returns Pool fee in bips (1/10000). To obtain the pool fee percentage, simply multiply it by 100.autocompoundBalanceOf(address)
: Returns total user autocompound balance. The "Autocompound balance" refers to the user's actively staked ETH balance that continuously increases as rewards are restaked. Part of this balance could be in pending state after rewards autocompound.withdrawRequestQueueParams()
: Provides a overview of the withdrawal request queue. It retrieves information about the total amount of funds requested for withdrawal over the entire operational period, giving an insight into the overall demand for withdrawals. Additionally, the function details the current amount that is permissible for interchange with deposits, which is crucial for maintaining a balanced liquidity between incoming and outgoing funds.withdrawRequest(address)
: Returns user withdraw request info. Actual requested amount and amount ready for claim.minStakeAmount()
: Returns the minimum amount required for a single user stake.
Getting Validator Info
closeValidatorsStat()
: Returns the number of validators expected to stop.getPendingValidatorCount()
: Returns number of validators prepared for deposit.getPendingValidator(index)
: By using an index, retrieve the pending validator public key. Please note that the list of pending validators is dynamic, and the ordering may be unstable.getValidatorCount()
: Returns the total number of known validators. Validators can be in one of the following statuses: pending, deposited, or exited. Exited validators will be replaced by new pending validators to optimize memory usage.getValidator(index)
: Returns validator pubkey and status.
WARNING
Currently, all Wallet SDK methods for Ethereum are available on the Ethereum Mainnet and Holesky test network.
WARNING
Using REST API methods and JS library, you have to sign transaction on your side: see more
Why the Wallet SDK
It is very simple to integrate staking, using described methods with code examples.