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 NFTsUsage
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
| Parameter | Type | Required | Description |
|---|---|---|---|
| from / username | AccountRef | string | Yes | Signing account. |
| instances | NftMintInstance[] | Yes | One entry per NFT minted. |
| instances[].symbol | string | Yes | Collection symbol. |
| instances[].account | string | Yes | Receiving account. |
| instances[].feeSymbol | string | No | Fee token for that instance. |
| instances[].properties | object | No | Instance properties. |
