v2 package

Overview

Package validators implements the on-chain validator set management through Proof of Contribution. The Realm exposes only a public executor for govdao proposals, that can suggest validator set changes.

Function

IsValidator

func IsValidator(addr std.Address) bool

IsValidator returns a flag indicating if the given bech32 address is part of the validator set

Param

Command

gnokey query -remote "https://rpc.gno.land:443" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/sys/validators/v2" -func "IsValidator"  -args "" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "staging" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.gno.land:443" call.tx