Skip to content

A module to simplify submitting actions to the WAX Blockchain.

License

Notifications You must be signed in to change notification settings

Simoblaster/jswaxdispatcher

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jswaxdispatcher

Quickly integrate submitting WAX blockchain transactions in NodeJS projects

Installation

npm i jswaxdispatcher

Usage

const { jswaxdispatcher } = require('jswaxdispatcher')
const projectWallet = new jswaxdispatcher(privateKey, walletAddress, permission, customSignatureProvider)
//permission & customSignatureProvider optional but recommended.
//DEFAULTS permission = 'active', customSignatureProvider = JsSignatureProvider from eosjs

projectWallet.sendWax(quantity, recipient, memo) //memo optional
    .then((res) => {console.log(res)});

Functions

.sendWax( quantity, recipient , memo )

Send an address WAX with optional memo

.sendTokens( quantity, symbol, tokenContractAcct, recipient, memo )

Send an address a specified token with optional memo

.sendAssets( assetIds[], recipient, memo )

Send an address NFTs by specified asset_ids with optional memo

.burnAssets( assetIds[] )

Burn NFTs by specified asset_ids

.mintFromTemplate( collectionName, schemaName, templateId, recipient, amount )

Mint NFTs by specified template #, wallet must be authorized with the collection

WARNING

The default customSignatureProvider is JsSignatureProvider included with eosjs.

"Using the JsSignatureProvider in the browser is not secure and should only be used for development purposes. Use a secure vault outside of the context of the webpage to ensure security when signing transactions in production" ~eosjs documentation

About

A module to simplify submitting actions to the WAX Blockchain.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%