NewDelegation
NewDelegation creates a delegation record with no undelegated or collected amount.
Parameters:
- id: unique identifier assigned to this delegation record.
- delegateFrom: address whose tokens are delegated.
- delegateTo: address receiving the delegated voting power.
- delegateAmount: initial delegated token amount in the smallest token unit.
- createdHeight: block height at which the delegation was created.
- createdAt: Unix timestamp at which the delegation was created.
Returns:
- *Delegation: initialized delegation with empty withdrawal history.
Command
gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/gnoswap/gov/staker.NewDelegation(,,,,,)"
Result