Token Smart Contract

The code below is an example and requires further refinement for specific business tasks.

Interface BasicStandard is necessary to create a token (implementation is mandatory and provided below).

Java
Copy

As well as interface ExtensionStandard (Implementation is not mandatory, but recommended and is provided below).

Java
Copy

Further is the example of a token implementation according to Credits standard.

Examples sets the following in the class constructor:

  • Token name (name)
  • Token symbol (symbol)
  • Number of decimals (decimal)
  • Public key of the token owner (owner)
  • Total number of tokens (totalCoins)

Examples of implementation of Interfaces BasicStandard and ExtensionsStandard are provided below.

Java
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
On This Page
Token Smart Contract