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

staker package

Function

GetDelegatorDelegations

func GetDelegatorDelegations(delegator address) *rotree.ReadOnlyTree

GetDelegatorDelegations returns a read-only view of a delegator's delegations, keyed by delegatee address with that pair's delegation IDs as the value. Reading an entry yields a copy of the ID slice, so the view cannot mutate realm state. nil is returned when the delegator has no delegations. Parameters:

  • delegator: Address whose delegations should be listed.

Returns:

  • *rotree.ReadOnlyTree: read-only view keyed by delegatee address, or nil when delegator has no delegations.

Param

Command

gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/gnoswap/gov/staker.GetDelegatorDelegations()"

Result