Create
Create publishes a new form under slug, which becomes its ID and its URL segment (/r/<ns>/forms:<slug>). Slugs are unique per realm.
Fields are described by four parallel, pipe-separated strings so the call stays usable from gnokey and gnoweb without structured arguments:
Example
1labels: "Name|Why gno.land?|Server type"
2kinds: "text|textarea|select"
3required: "1|1|0"
4options: "||cloud,on-prem,data-center" (comma-separated; only select uses it)
deadline is a chain height after which the form stops accepting responses, or 0 for none. onePerAddr limits each address to a single response.
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-encapsulate001/forms" -func "Create" -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "pearl-1" -remote "https://rpc.pearl.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.pearl.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/nym-encapsulate001/forms" -func "Create" -args $'' -args $'' -args $'' -args $'' -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 "pearl-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.pearl.testnets.gno.land" call.tx