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

halt/v1 package

Overview

Package halt provides functionality for managing protocol halt levels and operations.

Function

IsHalted

func IsHalted(opTypes ...OpType) (bool, error)

IsHalted returns true if any of the specified operation types are halted. Returns error if any operation type is invalid.

Parameters:

  • opTypes: operation types to inspect; an empty list reports no halted operations

Returns:

  • halted: true when any requested operation is halted; on invalid input it is also true alongside the error
  • error: nil when all requested operation types are valid and inspected; an invalid-operation or state error otherwise

Param

Command

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

Result