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

Tokens

Burn tokens

Burning is a transfer to a destination nobody controls. The SDK defaults that destination to the Hive account null.

Try it: burn tokens

Usage

TypeScript
await hive.issuer.token.burn({
  from: hive.accounts.treasury,
  symbol: "MYTOKEN",
  quantity: "10.000",
  // account: "null" by default
});

await hive.keychainIssuer.token.burn({
  username: "alice",
  symbol: "MYTOKEN",
  quantity: "10.000",
});

Important

Burned supply cannot be recovered.

Parameters

ParameterTypeRequiredDescription
from / usernameAccountRef | stringYesSigning account.
symbolstringYesToken symbol being burned.
quantitystringYesDecimal string amount.
accountstringNoOptional burn destination, default "null".
memostringNoOptional memo.