Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

Run Script

1package main
2
3import "gno.land/r/g1magld5ptgzaktqcexxq0pgq5lmdf0kz6re8hlv/x/vm/riscvdemo/v0"
4
5func main() {
6	// Call riscvdemo functions here, e.g.:
7	// println(riscvdemo.Render(""))
8	_ = riscvdemo.Render
9}

Generated Command

Running it signs a transaction with ADDRESS and broadcasts it to the onyx-1 chain, which charges its gas fee, even when the script runs out of gas: raise -gas-wanted and -gas-fee for a heavier one.

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

cat > script.gno <<'GNO_EOF'
package main

import "gno.land/r/g1magld5ptgzaktqcexxq0pgq5lmdf0kz6re8hlv/x/vm/riscvdemo/v0"

func main() {
	// Call riscvdemo functions here, e.g.:
	// println(riscvdemo.Render(""))
	_ = riscvdemo.Render
}
GNO_EOF

gnokey maketx run -gas-fee 100000ugnot -gas-wanted 50_000_000 -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESS script.gnocat > script.gno <<'GNO_EOF'
package main

import "gno.land/r/g1magld5ptgzaktqcexxq0pgq5lmdf0kz6re8hlv/x/vm/riscvdemo/v0"

func main() {
	// Call riscvdemo functions here, e.g.:
	// println(riscvdemo.Render(""))
	_ = riscvdemo.Render
}
GNO_EOF

gnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx run -gas-fee 100000ugnot -gas-wanted 50_000_000 -broadcast=false ADDRESS script.gno > run.tx
gnokey sign -tx-path run.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" run.tx