Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More command line such as send $IP, withdraw reward. #93

Open
Obiwank107 opened this issue Sep 8, 2024 · 1 comment
Open

More command line such as send $IP, withdraw reward. #93

Obiwank107 opened this issue Sep 8, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Obiwank107
Copy link

Please add command line for send $IP and withdraw $IP staking reward.

@Obiwank107 Obiwank107 added the enhancement New feature or request label Sep 8, 2024
@zsystm
Copy link
Collaborator

zsystm commented Sep 9, 2024

@Obiwank107

  • You can send $IP via eth transaction to Execution Client(= Geth)
  • Accumulated staking rewards are automatically withdrawn by evmstaking.EndBlocker if the amount is bigger than MinPartialWithdrawalAmount
    • So, you don't have to try to withdraw staking rewards. it will be automatically added to the account in Execution Layer.

Background knowledge

  • User can only interact with Execution Layer (= Geth)
  • User cannot directly send txs to consensus client. (ref. code)
  • To trigger allowed state transition (e.g. CreateValidator, Stake, Unstake, etc...) on CL, you need to send eth tx to protocol contracts deployed on Execution Layer (= Geth)
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants