1.0.1-alpha • Published 5 months ago

lyrax-wallet-sdk v1.0.1-alpha

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Official Lyrax Manager JavaScript Library for $LYRX token.

How to use the Manager

To create an instance.

const lyrax = LyraxWallet.getInstance();

functions

js const wallet = lyrax.createWallet(); // return {address, privateKey}

This function is used to create a wallet for the client.

js const balance = lyrax.balanceOf(address); return long or int

This function is used to check the balance of a user.

js lyrax.decimals(); lyrax.tokenName(); lyrax.symbol(); lyrax.totalSupply();

This functions is used the metadata for the token.

js const tx = lyrax.transfer(address, amount);

This function is used to send tokens to another wallet.

js const data = lyrax.transactionOf(address);

This is used to get latest transaction of the user.

Special functions

const ad = lyrax.airdrop(arrayOfAddress, amount);

This function is used to airdrop tokens to eligible users but can be called by the admin.