emit package

Overview

Package emit demonstrates how to use the std.Emit() function to emit Gno events that can be used to track data changes off-chain. std.Emit is variadic; apart from the event name, it can take in any number of key-value pairs to emit.

Function

Emit

func Emit(value string)

Param

Command

gnokey query -remote "https://rpc.gno.land:443" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/demo/emit" -func "Emit"  -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