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

NFTs

Transfer NFTs

Transfers are grouped per collection: each entry lists a symbol and the instance ids moving to the destination.

Try it: transfer NFTs

Usage

Instance ids are strings, exactly as Hive Engine reports them.

TypeScript
await hive.issuer.nft.transfer({
  from: hive.accounts.treasury,
  account: "bob",
  nfts: [{ symbol: "TESTNFT", ids: ["1", "2", "3"] }],
});

await hive.keychainIssuer.nft.transfer({
  username: "alice",
  account: "bob",
  nfts: [{ symbol: "TESTNFT", ids: ["1"] }],
});

Parameters

ParameterTypeRequiredDescription
from / usernameAccountRef | stringYesSigning account.
accountstringYesReceiving account.
nfts{ symbol, ids }[]YesInstances grouped by collection.