AddArtworks
Ask AI
AddArtworks declares up to MaxBatch artworks, one per '\n'-separated line:
Example
1kind|mime|size|sha256|cid|editions|tier|title|v1|…|vN
with exactly one value per trait type of the store (N = len(traitTypes)):
- kind "chain" | "ipfs"; mime "svg" | "png" | "webp" | "jpeg";
- size: decimal bytes, chain svg <= 16,384, chain raster <= 262,144, ipfs raw <= 1 MiB, ipfs dag-pb <= 50 MiB; the store's on-chain total stays <= 4 MiB;
- sha256: 64 lower-case hex of the file bytes, unique in the store (use editions for copies);
- cid: "" for chain; for ipfs a CIDv1 (media.ParseCIDv1): raw codec ⇒ its digest must equal sha256 (verified binding), dag-pb ⇒ digest stored;
- editions 1..10,000 (the store's slots stay <= 10,000);
- tier "" or one of the store's tiers; title <= 64 bytes;
- values "" (none) or <= 32 bytes, no leading/trailing space; at most 100 distinct values per trait type and 255 over all types of a store.
Returns "first-last" (0-based indexes). Event ArtworkAdded per line.
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/sinopia3/assets/v1" -func "AddArtworks" -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/sinopia3/assets/v1" -func "AddArtworks" -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