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

pool package

Function

GetSlot0Unlocked

func GetSlot0Unlocked(poolPath string) (bool, error)

GetSlot0Unlocked reports whether the pool is currently unlocked. Parameters:

  • poolPath: Canonical pool path identifying the pool to query.

Returns:

  • bool: True when the pool is not holding its reentrancy lock; false when the pool is currently locked.
  • error: Non-nil when poolPath does not identify an existing pool.

Param

Command

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

Result