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

Tokens

Issue tokens

Mint new supply of a token you control into a destination account. Quantities are always decimal strings.

Try it: issue tokens

Usage

Backend calls take a configuration alias as from; Keychain calls take a username. Both emit the identical tokens contract action.

TypeScript
await hive.issuer.token.issue({
  from: hive.accounts.treasury,
  symbol: "MYTOKEN",
  account: "bob",
  quantity: "100.000",
  memo: "welcome bonus", // optional
});

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

// Offline preview of the custom_json operation
hive.keychainIssuer.token.buildIssue({ symbol: "MYTOKEN", account: "bob", quantity: "100.000" });

Parameters

ParameterTypeRequiredDescription
from / usernameAccountRef | stringYesSigning account.
symbolstringYesToken symbol being minted.
accountstringYesDestination Hive account.
quantitystringYesDecimal string, never a number.
memostringNoOptional memo attached to the action.