Tokens
Issue tokens
Mint new supply of a token you control into a destination account. Quantities are always decimal strings.
Try it: issue tokensUsage
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
| Parameter | Type | Required | Description |
|---|---|---|---|
| from / username | AccountRef | string | Yes | Signing account. |
| symbol | string | Yes | Token symbol being minted. |
| account | string | Yes | Destination Hive account. |
| quantity | string | Yes | Decimal string, never a number. |
| memo | string | No | Optional memo attached to the action. |
