Run Script
Command Settings
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/g1jz6j9hj6rdf5ltl2kcrpa4jwtdh3w30z0yul06/sinopia3/randomness/drand"
func main() {
// Call drand functions here, e.g.:
// println(drand.Render(""))
_ = drand.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/g1jz6j9hj6rdf5ltl2kcrpa4jwtdh3w30z0yul06/sinopia3/randomness/drand"
func main() {
// Call drand functions here, e.g.:
// println(drand.Render(""))
_ = drand.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