Skip to main content

Introduction

In this tutorial, you will create your own currency on inery blockchain network.

Pre-requirements

You will need Inery Node to execute transactions and Inery account to become token contract account

  • Inery Node
  • Inery Account

Token Contract

Token contract has 6 main actions token contract actions :

create

Create a new token with maximum supply and asset symbol. This action will not result any tokens being issued into circulation. Issuer will be allowed to issue tokens into circulation, up to maximum supply. required parameters :

  • issuer
  • masimum_supply

issue

Issue token into circulation and transfer quantity issued to issuer. This action does not allow the total quantity to exceed the max allowed supply of the token.

required parameters :

  • to
  • quantity
  • memo

open

The open action allows a payer account to register an account as a token holder for a given symbol with the token balance as zero. It allows the action signer to pay for the memory needed to create a new table for record of all tokens for a user and set the balance for that token to zero.

required parameters :

  • owner
  • symbol
  • mem_payer

close

Close payer account's zero quantity balance.

required parameters :

  • owner
  • symbol

retire

Opposite of create function

required parameters :

  • quantity
  • memo

transfer

Transfer action transfer tokens from account A to account B.

required parameters :

  • from
  • to
  • quantity
  • memo