1.1.1 • Published 2 years ago

tokenzsdk-v0 v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

TokenzSDK JavaScript SDK

This SDK aims to help integrating tokenz777 application in your website TokenzSDK that use JavaScript.

Requirements

To use this SDK, you will need:

Node installation will include npm, which is responsible for dependency management.

Installation

Node.js

npm i tokenzsdk-v0

import TokenzSDK from 'tokenzsdk-v0';

Usage

This SDK helps in loading the ICO tokenz777 in your website to create & send tokens

Before executing any request, you need to load the main contract first:

1. LoadMain Contract

const tokenzSDK = new TokenzSDK();
tokenzSDK.loadMainContract();

2. Get Customers/Tokens

to get all tokens created by the contract:

tokenzSDK.getAllCustomers();

3. Create New Token

to create a new token; three arguments are required: token name, token symbol & token supply

tokenzSDK.createToken(tokenName, tokenSymbol, tokenSupply);

4. Send Tokens

to send tokens from your account to another account; three arguments are required: token contract address, wallet address of the receiver & token amount.

tokenzSDK.sendToken(tokenContractAddress, walletAddress, tokenAmount);

Available methods

  • connectSmartCahinTestnet()
  • loadMainContract()
  • connectAccount()
  • loadTokenContract(tokenContractAddress)
  • getAllCustomers()
  • sendToken(tokenContractAddress, walletAddress, tokenAmount)
  • createToken(tokenName, tokenSymbol, tokenSupply)
1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago