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

Tokens

Transfer tokens

Transfer moves balance the signing account already holds. Use issue when you want to mint new supply instead.

Try it: transfer tokens

Usage

A transfer fails on the sidechain when the balance is short — the SDK builds and broadcasts the action, Hive Engine settles it.

TypeScript
await hive.issuer.token.transfer({
  from: hive.accounts.treasury,
  symbol: "MYTOKEN",
  account: "bob",
  quantity: "25.000",
  memo: "payout", // optional
});

await hive.keychainIssuer.token.transfer({
  username: "alice",
  symbol: "MYTOKEN",
  account: "bob",
  quantity: "25.000",
});

Parameters

ParameterTypeRequiredDescription
from / usernameAccountRef | stringYesSigning account.
symbolstringYesToken symbol being moved.
accountstringYesRecipient Hive account.
quantitystringYesDecimal string amount.
memostringNoOptional memo.