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

NewDelegationWithdrawWithoutLockup

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

NewDelegationWithdrawWithoutLockup creates a withdrawal that is immediately collectable. This is used for special cases such as redelegation where no lockup is required.

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.

Returns:

  • DelegationWithdraw: new withdrawal instance marked collected with collectable time equal to createdAt.

Params

Command

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

Result