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

NFTs

Issue multiple NFTs

One contract action mints a list of instances. Each entry carries its own destination, fee symbol and properties.

Try it: issue multiple NFTs

Usage

Instances may target different accounts and carry different properties.

TypeScript
await hive.issuer.nft.issueMultiple({
  from: hive.accounts.treasury,
  instances: [
    { symbol: "TESTNFT", account: "bob", feeSymbol: "BEE", properties: { level: 1 } },
    { symbol: "TESTNFT", account: "carol", feeSymbol: "BEE", properties: { level: 2 } },
  ],
});

await hive.keychainIssuer.nft.issueMultiple({
  username: "alice",
  instances: [{ symbol: "TESTNFT", account: "bob", feeSymbol: "BEE" }],
});

Parameters

ParameterTypeRequiredDescription
from / usernameAccountRef | stringYesSigning account.
instancesNftMintInstance[]YesOne entry per NFT minted.
instances[].symbolstringYesCollection symbol.
instances[].accountstringYesReceiving account.
instances[].feeSymbolstringNoFee token for that instance.
instances[].propertiesobjectNoInstance properties.