Staking-V2 Precompiled
Address: 0x0000000000000000000000000000000000001003
Interface: IStaking
ABI: IStaking
Introduction
use staking v2 precompiled contract to call some functions of the staking module, such as: delegate, undelegate, redelegate, etc.
Method
delegateV2
delegate token to validator, get result
_val
: the validator address_amount
: the amount of the token to be delegate_result_
: the delegate result
only can delegate origin token
only delegate validator who has participated in block generation, delegate again, will get reward
delegate event
delegator
: the delegator addressvalidator
: the validator address to be delegatedamount
: the amount of the token to be delegated
undelegateV2
undelegate token from validator, get result
_val
: the validator address to be undelegate_amount
: the amount to undelegate_result_
: the undelegate result
undelegate event
sender
: the sender addressvalidator
: the validator address to be undelegateamount
: the amount to undelegatecompletionTime
: the completion time of undelegate
redelegateV2
redelegate token from validator to other validator, get result
_valSrc
: the validator address to be redelegate_valDst
: the validator address to be redelegate to_amount
: the amount to redelegate_result_
: the undelegate result
redelegate event
sender
: the sender addressvalSrc
: the validator address to be redelegatedvalDst
: the validator address to be redelegated toamount
: the amount to redelegatecompletionTime
: the completion time of redelegate
Last updated