Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

staker package

Function

NewDelegationWithdraw

func NewDelegationWithdraw( delegationID, unDelegateAmount, createdHeight, createdAt, unDelegationLockupPeriod int64, ) DelegationWithdraw
Ask AI Claude ChatGPT

NewDelegationWithdraw creates a new delegation withdrawal with lockup period. The withdrawal becomes collectable after the lockup period expires.

Parameters:

  • delegationID: Unique identifier of the associated delegation.
  • unDelegateAmount: Amount being withdrawn.
  • createdHeight: Block height at which the undelegation was created.
  • createdAt: Unix timestamp at which the withdrawal was created.
  • unDelegationLockupPeriod: Lockup duration in seconds.

Returns:

  • DelegationWithdraw: new withdrawal instance with its collectable time set after the lockup.

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/gnoswap/gov/staker.NewDelegationWithdraw(,,,,)"

Result