RegisterEngine
Ask AI
RegisterEngine stores the calling realm's engine (I-16: the manifest, default params and one sample render with its traits, in the engine's own registration transaction). The record is immutable afterwards except for the claim/deprecate/review/superseded flags, the collection count and the access policy (access.gno: every engine starts closed).
salt is "" or the salt of a ReserveFingerprint commitment made by the manifest author (ENG-M1 rule 2). Fingerprint rules (I-14), with signer = OriginCaller:
- every registration must be signed by its manifest author (signer == Manifest.Author; WP-J J-2: otherwise a tx the author of a live engine signs into a foreign realm could register a re-wrap of that art under another author, since CV-L3 exempts the author's own versions);
- a fingerprint reserved in source (config.gno) registers only with signer == Manifest.Author == its reserved author;
- a live record of the same art by another author (not deprecated, not superseded) blocks the registration (CV-L3) unless this registration is reserved in source, or backed by a reservation made before that record's own priority (so the record was registered after the reservation's commit; WP-J J-3), or the record is unclaimed and older than UnclaimedHoldBlocks; such records are marked superseded instead.
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/g1jz6j9hj6rdf5ltl2kcrpa4jwtdh3w30z0yul06/sinopia4/core" -func "RegisterEngine" -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/g1jz6j9hj6rdf5ltl2kcrpa4jwtdh3w30z0yul06/sinopia4/core" -func "RegisterEngine" -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