Authorize
Ask AI
Authorize spends one-time key number leaf of account on payload, on behalf of the calling realm. It returns only if both proofs are valid signatures of qrc.AuthorizeMessage for the caller's package path and payload, and panics otherwise. account must be written as the chain writes it, in lower-case bech32, so that the calling realm holds exactly the account whose keys signed.
It lets a realm act for an account on the sole strength of its recovery keys. A proof made for one realm is useless to any other, and what the payload means is entirely up to the caller. An approval stays valid until its leaf is spent or the account rotates: the registry gives it no deadline and no nonce, so an app must put both in the payload and check them. The approval names a package path, not code: check what runs at that path before signing.
The calling realm sees the proofs before its transaction ends and may still make it fail, which leaves the leaf unspent here although its signature is public. A wallet must treat a leaf as spent as soon as a signature made with it leaves the wallet, and never sign anything else with it.
Command
# 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.
gnokey maketx call -pkgpath "gno.land/r/nym-rootlatch001/qrcregistry/v1" -func "Authorize" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/nym-rootlatch001/qrcregistry/v1" -func "Authorize" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx