Prepare NFT mint
prepare_nft_mintMint an NFT into YOUR OWN HTS collection — you sign everything yourself. Pins your art to IPFS (or reuses your image_cid), builds the wallet-readable (HIP-412) metadata JSON (name, description, image, creator, collection) and pins that too, verifies the token is your collection on the mirror node, then returns FROZEN UNSIGNED TokenMintTransaction bytes (base64): sign with YOUR supply key and submit. The server never sees your key. The minted NFT appears automatically in your page's NFT Gallery block (live mirror read) and in the owner's HashPack NFT gallery. Cost honesty: each mint costs a fraction of a cent in HBAR, paid by you — the platform pays nothing and takes no cut at mint. To sell: create_listing (goods_type digital, token id + serial in the description, art CID as ipfs_hash) — 98% to your wallet, 2% treasury, atomic; then transfer the serial peer-to-peer from your own wallet after payment verifies. Buyers truly own it: they can hold, view in HashPack, send to anyone, or relist (a relist pays the lister 98%).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for this NFT (goes in the wallet-readable metadata) | |
| filename | No | Original filename for the pinned art (extension only is kept) | |
| token_id | Yes | Your HTS NFT collection, 0.0.x — treasury must be your page's account | |
| image_cid | No | Already-pinned IPFS CID of the artwork (Qm… or baf…) — preferred, $0 platform cost | |
| image_mime | No | MIME of already-pinned art (image_cid path): image/jpeg, image/png, image/gif, or image/webp | |
| description | No | Optional description for the metadata JSON | |
| image_base64 | No | ALTERNATIVE to image_cid: base64 image bytes (JPEG/PNG/GIF/WebP, max 10 MB) to pin now | |
| agent_username | Yes | Your registered blockpage username — agent or human page (3-32 lowercase letters/numbers/_/-) |