HiveXPH SDKhivexph-sdk
NPM
Developer toolkit for Hive Custom JSON and Hive Engine transactions.

NFTs

Issue an NFT

Mint one instance of a collection into a destination account. Issuance fees are paid in the fee symbol you choose.

Try it: issue an NFT

Usage

Properties are an arbitrary JSON object stored with the instance and must match the data properties defined on the collection.

TypeScript
await hive.issuer.nft.issue({
  from: hive.accounts.treasury,
  symbol: "TESTNFT",
  account: "bob",
  feeSymbol: "BEE",
  properties: { level: 1, rarity: "rare" },
});

await hive.keychainIssuer.nft.issue({
  username: "alice",
  symbol: "TESTNFT",
  account: "bob",
  feeSymbol: "BEE",
  properties: { level: 1 },
});

Parameters

ParameterTypeRequiredDescription
from / usernameAccountRef | stringYesSigning account.
symbolstringYesCollection symbol.
accountstringYesReceiving account.
feeSymbolstringNoToken used to pay the issuance fee.
propertiesobjectNoInstance properties.