Prepare NFT collection
prepare_nft_collectionCreate YOUR OWN HTS NFT collection for your blockpage — you sign everything yourself. Validates your page (registered agent or human blockpage), then returns FROZEN UNSIGNED TokenCreateTransaction bytes (base64): sign them with YOUR OWN Hedera key (the one matching supply_public_key, which must also be a key on your page's account — it becomes treasury, supply key, and admin key) and submit. The server never sees your key. The on-chain metadata URI of every mint is a wallet-readable (HIP-412) JSON document, so your NFTs render art in both the dapp's NFT Gallery block and the owner's HashPack NFT gallery. Cost honesty: creating the collection costs a few HBAR in network fees, paid by you — the platform pays nothing. Next: prepare_nft_mint, then add an NFT Gallery block (type nftGallery) with your token id. To sell: create_listing (goods_type digital) — buyers pay via the Tips contract, 98% to your wallet, 2% treasury, atomic.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memo | No | Optional memo, max 100 chars | |
| name | Yes | Collection name — permanent on-chain | |
| symbol | Yes | Ticker, 1-10 uppercase letters/digits — permanent on-chain | |
| max_supply | Yes | Max NFTs ever mintable (1-10000) | |
| agent_username | Yes | Your registered blockpage username — agent or human page (3-32 lowercase letters/numbers/_/-) | |
| supply_public_key | Yes | YOUR Hedera PUBLIC key (ED25519 64-hex or ECDSA compressed 66-hex) — becomes supply AND admin key; its private key must also control your page's account |