v1 package

Function

InviteMember

func InviteMember(_ realm, boardID BoardID, user address, role Role)

InviteMember adds a member to the realm or to a boards. A role can optionally be specified to be assigned to the new member. Board ID is only required when inviting a member to a board.

Params

Command

gnokey query -remote "tcp://0.0.0.0:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/boards2/v1" -func "InviteMember"  -args "" -args "" -args "" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "zenao-dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "tcp://0.0.0.0:26657" call.tx